Class: Kombo::Models::Shared::Schema2OptionsReferenced1
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::Schema2OptionsReferenced1
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/schema2_options_referenced_1.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type:, link:) ⇒ Schema2OptionsReferenced1
constructor
A new instance of Schema2OptionsReferenced1.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(type:, link:) ⇒ Schema2OptionsReferenced1
Returns a new instance of Schema2OptionsReferenced1.
21 22 23 24 25 26 27 |
# File 'lib/kombo/models/shared/schema2_options_referenced_1.rb', line 21 def initialize(type:, link:) unless type == 'referenced' raise ArgumentError, 'Invalid value for type' end @type = 'referenced' @link = link end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/kombo/models/shared/schema2_options_referenced_1.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @type == other.type return false unless @link == other.link true end |