Class: RockRMS::Response::GroupLocation

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

Constant Summary collapse

MAP =
{
  group_id: 'GroupId',
  location_id: 'LocationId',
  guid: 'Guid'
}.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



10
11
12
13
14
15
16
17
18
# File 'lib/rock_rms/response/group_location.rb', line 10

def format_single(data)
  result = to_h(MAP, data)

  if location = data['Location']
    result[:location] = Location.format(location)
  end

  result
end