Class: GustoEmbedded::Models::Shared::MetadataWithOneEntity

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/metadata_with_one_entity.rb

Overview

single entity

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(entity_type: nil, entity_uuid: nil, additional_properties: nil, valid_from: nil, valid_up_to: nil, key: nil, state: nil) ⇒ MetadataWithOneEntity

Returns a new instance of MetadataWithOneEntity.



31
32
33
34
35
36
37
38
39
# File 'lib/gusto_embedded/models/shared/metadata_with_one_entity.rb', line 31

def initialize(entity_type: nil, entity_uuid: nil, additional_properties: nil, valid_from: nil, valid_up_to: nil, key: nil, state: nil)
  @entity_type = entity_type
  @entity_uuid = entity_uuid
  @additional_properties = additional_properties
  @valid_from = valid_from
  @valid_up_to = valid_up_to
  @key = key
  @state = state
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/gusto_embedded/models/shared/metadata_with_one_entity.rb', line 42

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 @additional_properties == other.additional_properties
  return false unless @valid_from == other.valid_from
  return false unless @valid_up_to == other.valid_up_to
  return false unless @key == other.key
  return false unless @state == other.state
  true
end