Class: RockRMS::Response::DefinedType
- Defined in:
- lib/rock_rms/response/defined_type.rb
Constant Summary collapse
- MAP =
{ name: 'Name', description: 'Description', defined_values: 'DefinedValues', order: 'Order', value: 'Value', }.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/defined_type.rb', line 12 def format_single(data) response = to_h(MAP, data) response[:defined_values] = DefinedValue.format(response[:defined_values]) response end |