Class: Clerk::Models::Components::Domain
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Domain
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/domain.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, name:, is_satellite:, frontend_api_url:, development_origin:, accounts_portal_url: nil, proxy_url: nil, cname_targets: nil) ⇒ Domain
constructor
A new instance of Domain.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, name:, is_satellite:, frontend_api_url:, development_origin:, accounts_portal_url: nil, proxy_url: nil, cname_targets: nil) ⇒ Domain
Returns a new instance of Domain.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/clerk/models/components/domain.rb', line 36 def initialize(object:, id:, name:, is_satellite:, frontend_api_url:, development_origin:, accounts_portal_url: nil, proxy_url: nil, cname_targets: nil) @object = object @id = id @name = name @is_satellite = is_satellite @frontend_api_url = frontend_api_url @development_origin = development_origin @accounts_portal_url = accounts_portal_url @proxy_url = proxy_url @cname_targets = cname_targets end |
Instance Method Details
#==(other) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/clerk/models/components/domain.rb', line 49 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @name == other.name return false unless @is_satellite == other.is_satellite return false unless @frontend_api_url == other.frontend_api_url return false unless @development_origin == other.development_origin return false unless @accounts_portal_url == other.accounts_portal_url return false unless @proxy_url == other.proxy_url return false unless @cname_targets == other.cname_targets true end |