class Nucleus::Endpoint
The {Endpoint} model will initially be imported from .yaml
description files and shall be persisted in the {Nucleus::DB::Store store}. The endpoint has the following properties:
-
id (String)
-
name (String)
-
provider (
Nucleus::Provider
) -
url (String)
-
app_domain
(String) -
trust (Boolean)
@author Cedric Roeck (cedric.roeck@gmail.com) @since 0.1.0
Attributes
app_domain[RW]
provider[RW]
trust[RW]
url[RW]
Public Class Methods
new(hash = nil)
click to toggle source
Calls superclass method
Nucleus::AbstractModel::new
# File lib/nucleus/core/models/endpoint.rb, line 21 def initialize(hash = nil) super(hash) @trust = false return if hash.nil? @url = hash['url'] @app_domain = hash['app_domain'] @trust = hash['trust'] if hash.key?('trust') end