Class: RockRMS::Response::Registration

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

Constant Summary collapse

MAP =
{
  first_name: 'FirstName',
  last_name: 'LastName',
  confirmation_email: 'ConfirmationEmail',
  person_alias_id: 'PersonAliasId',
  registration_instance_id: 'RegistrationInstanceId',
  registration_instance: 'RegistrationInstance',
  registrants: 'Registrants'
}.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



14
15
16
17
18
# File 'lib/rock_rms/response/registration.rb', line 14

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