Class: RockRMS::Response::Page

Inherits:
Base
  • Object
show all
Defined in:
lib/rock_rms/response/page.rb

Constant Summary collapse

MAP =
{
  name: 'InternalName',
  page_title: 'PageTitle',
  browser_title: 'BrowserTitle',
  blocks: 'Blocks'
}.freeze

Constants inherited from Base

Base::BASE_MAPPING

Instance Attribute Summary

Attributes inherited from Base

#data

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



11
12
13
14
15
# File 'lib/rock_rms/response/page.rb', line 11

def format_single(data)
  response = to_h(MAP, data)
  response[:blocks] = Block.format(response[:blocks])
  response
end