Class: GustoEmbedded::Models::Shared::Resources
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Resources
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/resources.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(entity_type:, entity_uuid:, reference_type: nil, reference_uuid: nil) ⇒ Resources
constructor
A new instance of Resources.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(entity_type:, entity_uuid:, reference_type: nil, reference_uuid: nil) ⇒ Resources
Returns a new instance of Resources.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/resources.rb', line 25 def initialize(entity_type:, entity_uuid:, reference_type: nil, reference_uuid: nil) @entity_type = entity_type @entity_uuid = entity_uuid @reference_type = reference_type @reference_uuid = reference_uuid end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/resources.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @entity_type == other.entity_type return false unless @entity_uuid == other.entity_uuid return false unless @reference_type == other.reference_type return false unless @reference_uuid == other.reference_uuid true end |