Class: RockRMS::Response::GroupMember
- Defined in:
- lib/rock_rms/response/group_member.rb
Constant Summary collapse
- MAP =
{ person: 'Person', group_id: 'GroupId', }.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_person(res) ⇒ Object
15 16 17 18 |
# File 'lib/rock_rms/response/group_member.rb', line 15 def format_person(res) return res if res.nil? Person.format(res) end |
#format_single(data) ⇒ Object
9 10 11 12 13 |
# File 'lib/rock_rms/response/group_member.rb', line 9 def format_single(data) response = to_h(MAP, data) response[:person] = format_person(response[:person]) response end |