Class: CARMA::Models::Metadata
- Defined in:
- lib/carma/models/metadata.rb
Instance Attribute Summary collapse
-
#claim_guid ⇒ Object
Returns the value of attribute claim_guid.
-
#claim_id ⇒ Object
Returns the value of attribute claim_id.
-
#primary_caregiver ⇒ Object
Returns the value of attribute primary_caregiver.
-
#secondary_caregiver_one ⇒ Object
Returns the value of attribute secondary_caregiver_one.
-
#secondary_caregiver_two ⇒ Object
Returns the value of attribute secondary_caregiver_two.
-
#submitted_at ⇒ Object
Returns the value of attribute submitted_at.
-
#veteran ⇒ Object
Returns the value of attribute veteran.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Metadata
constructor
A new instance of Metadata.
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_guid ⇒ Object
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_id ⇒ Object
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_caregiver ⇒ Object
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_one ⇒ Object
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_two ⇒ Object
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_at ⇒ Object
Returns the value of attribute submitted_at.
18 19 20 |
# File 'lib/carma/models/metadata.rb', line 18 def submitted_at @submitted_at end |
#veteran ⇒ Object
Returns the value of attribute veteran.
22 23 24 |
# File 'lib/carma/models/metadata.rb', line 22 def veteran @veteran end |