Class: Moov::Models::Components::Capability

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/capability.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(capability:, account_id:, status:, created_on:, updated_on:, requirements: nil, disabled_reason: nil, disabled_on: nil) ⇒ Capability

Returns a new instance of Capability.



36
37
38
39
40
41
42
43
44
45
# File 'lib/moov/models/components/capability.rb', line 36

def initialize(capability:, account_id:, status:, created_on:, updated_on:, requirements: nil, disabled_reason: nil, disabled_on: nil)
  @capability = capability
  @account_id = 
  @status = status
  @created_on = created_on
  @updated_on = updated_on
  @requirements = requirements
  @disabled_reason = disabled_reason
  @disabled_on = disabled_on
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/moov/models/components/capability.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @capability == other.capability
  return false unless @account_id == other.
  return false unless @status == other.status
  return false unless @created_on == other.created_on
  return false unless @updated_on == other.updated_on
  return false unless @requirements == other.requirements
  return false unless @disabled_reason == other.disabled_reason
  return false unless @disabled_on == other.disabled_on
  true
end