Class: CARMA::Models::Metadata

Inherits:
Base
  • Object
show all
Defined in:
lib/carma/models/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

after_to_request_payload, request_payload_key, #to_request_payload

Constructor Details

#initialize(args = {}) ⇒ Metadata

Returns a new instance of Metadata.



27
28
29
30
31
32
33
34
35
36
# File 'lib/carma/models/metadata.rb', line 27

def initialize(args = {})
  @claim_id = args[:claim_id]
  @claim_guid = args[:claim_guid]
  @submitted_at = args[:submitted_at]

  self.veteran = args[:veteran] || {}
  self.primary_caregiver = args[:primary_caregiver]
  self.secondary_caregiver_one = args[:secondary_caregiver_one]
  self.secondary_caregiver_two = args[:secondary_caregiver_two]
end

Instance Attribute Details

#claim_guidObject

Returns the value of attribute claim_guid.



18
19
20
# File 'lib/carma/models/metadata.rb', line 18

def claim_guid
  @claim_guid
end

#claim_idObject

Returns the value of attribute claim_id.



18
19
20
# File 'lib/carma/models/metadata.rb', line 18

def claim_id
  @claim_id
end

#primary_caregiverObject

Returns the value of attribute primary_caregiver.



22
23
24
# File 'lib/carma/models/metadata.rb', line 22

def primary_caregiver
  @primary_caregiver
end

#secondary_caregiver_oneObject

Returns the value of attribute secondary_caregiver_one.



22
23
24
# File 'lib/carma/models/metadata.rb', line 22

def secondary_caregiver_one
  @secondary_caregiver_one
end

#secondary_caregiver_twoObject

Returns the value of attribute secondary_caregiver_two.



22
23
24
# File 'lib/carma/models/metadata.rb', line 22

def secondary_caregiver_two
  @secondary_caregiver_two
end

#submitted_atObject

Returns the value of attribute submitted_at.



18
19
20
# File 'lib/carma/models/metadata.rb', line 18

def 
  @submitted_at
end

#veteranObject

Returns the value of attribute veteran.



22
23
24
# File 'lib/carma/models/metadata.rb', line 22

def veteran
  @veteran
end