Sha256: 61c65e1dcd8fc95ec19781bdcb650592c3c125366101f21d68e39e7229a56031

Contents?: true

Size: 638 Bytes

Versions: 6

Compression:

Stored size: 638 Bytes

Contents

module RockRMS
  module Response
    class Person < Base
      MAP = {
        id:         'Id',
        name:       'FullName',
        email:      'Email',
        email_preference: 'EmailPreference',
        first_name: 'FirstName',
        last_name:  'LastName',
        giving_id:  'GivingId',
        giving_group_id: 'GivingGroupId',
        alias_id:   'PrimaryAliasId',
        connection_status_value_id: 'ConnectionStatusValueId',
        record_type_value_id: 'RecordTypeValueId',
        primary_family_id: 'PrimaryFamilyId',
      }.freeze

      def format_single(data)
        to_h(MAP, data)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rock_rms-9.13.0 lib/rock_rms/response/person.rb
rock_rms-9.12.0 lib/rock_rms/response/person.rb
rock_rms-9.11.0 lib/rock_rms/response/person.rb
rock_rms-9.10.0 lib/rock_rms/response/person.rb
rock_rms-9.9.0 lib/rock_rms/response/person.rb
rock_rms-9.8.0 lib/rock_rms/response/person.rb