Class: Clerk::Models::Components::Instance
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Instance
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/instance.rb
Overview
Success
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, environment_type:, allowed_origins: nil) ⇒ Instance
constructor
A new instance of Instance.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, environment_type:, allowed_origins: nil) ⇒ Instance
Returns a new instance of Instance.
25 26 27 28 29 30 |
# File 'lib/clerk/models/components/instance.rb', line 25 def initialize(object:, id:, environment_type:, allowed_origins: nil) @object = object @id = id @environment_type = environment_type @allowed_origins = allowed_origins end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/clerk/models/components/instance.rb', line 33 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 @environment_type == other.environment_type return false unless @allowed_origins == other.allowed_origins true end |