Class: StackOne::Models::Shared::CustomFields

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id: nil, name: nil, remote_id: nil, remote_value_id: nil, value: nil, value_id: nil) ⇒ CustomFields

Returns a new instance of CustomFields.



29
30
31
32
33
34
35
36
# File 'lib/stack_one/models/shared/customfields.rb', line 29

def initialize(id: nil, name: nil, remote_id: nil, remote_value_id: nil, value: nil, value_id: nil)
  @id = id
  @name = name
  @remote_id = remote_id
  @remote_value_id = remote_value_id
  @value = value
  @value_id = value_id
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/stack_one/models/shared/customfields.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @remote_id == other.remote_id
  return false unless @remote_value_id == other.remote_value_id
  return false unless @value == other.value
  return false unless @value_id == other.value_id
  true
end