Class: RockRMS::Response::AttributeValue
- Defined in:
- lib/rock_rms/response/attribute_value.rb
Constant Summary collapse
- MAP =
{ value: 'Value', value_as_number: 'ValueAsNumeric', value_formatted: 'ValueFormatted', entity_id: 'EntityId', attribute: 'Attribute' }.freeze
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
format, #format, #format_attributes, #initialize, #to_h
Constructor Details
This class inherits a constructor from RockRMS::Response::Base
Instance Method Details
#format_single(data) ⇒ Object
12 13 14 15 16 |
# File 'lib/rock_rms/response/attribute_value.rb', line 12 def format_single(data) response = to_h(MAP, data) response[:attribute] = Attribute.format(response[:attribute]) response end |