Class: RockRMS::Response::GroupLocation
- Defined in:
- lib/rock_rms/response/group_location.rb
Constant Summary collapse
- MAP =
{ id: 'Id', group_id: 'GroupId', location_id: 'LocationId', guid: 'Guid' }.freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
format, #format, #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 16 17 18 19 |
# File 'lib/rock_rms/response/group_location.rb', line 11 def format_single(data) result = to_h(MAP, data) if location = data['Location'] result[:location] = Location.format(location) end result end |