Class: RockRMS::Response::Block
- Defined in:
- lib/rock_rms/response/block.rb
Constant Summary collapse
- MAP =
{ name: 'Name', block_type: 'BlockType', page_id: 'PageId' }.freeze
Constants inherited from Base
RockRMS::Response::Base::BASE_MAPPING
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
10 11 12 13 14 |
# File 'lib/rock_rms/response/block.rb', line 10 def format_single(data) response = to_h(MAP, data) response[:block_type] = BlockType.format(response[:block_type]) response end |