Sha256: 9e9b6027568d05ea073abd9421031e6697866d11bc60daafb829662508b1d434

Contents?: true

Size: 1.38 KB

Versions: 12

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

module Meibo
  class UserProfile
    DataModel.define(
      self,
      attribute_name_to_header_field_map: {
        sourced_id: 'sourcedId',
        status: 'status',
        date_last_modified: 'dateLastModified',
        user_sourced_id: 'userSourcedId',
        profile_type: 'profileType',
        vendor_id: 'vendorId',
        application_id: 'applicationId',
        description: 'description',
        credential_type: 'credentialType',
        username: 'username',
        password: 'password'
      },
      converters: {
        datetime: [:date_last_modified],
        required: [:sourced_id, :user_sourced_id, :profile_type, :vendor_id, :credential_type, :username],
        status: [:status]
      }
    )

    def initialize(sourced_id:, status: nil, date_last_modified: nil, user_sourced_id:, profile_type:, vendor_id:, application_id: nil, description: nil, credential_type:, username:, password: nil, **extension_fields)
      @sourced_id = sourced_id
      @status = status
      @date_last_modified = date_last_modified
      @user_sourced_id = user_sourced_id
      @profile_type = profile_type
      @vendor_id = vendor_id
      @application_id = application_id
      @description = description
      @credential_type = credential_type
      @username = username
      @password = password
      @extension_fields = extension_fields
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
meibo-0.12.0 lib/meibo/user_profile.rb
meibo-0.11.0 lib/meibo/user_profile.rb
meibo-0.10.0 lib/meibo/user_profile.rb
meibo-0.9.0 lib/meibo/user_profile.rb
meibo-0.8.0 lib/meibo/user_profile.rb
meibo-0.7.0 lib/meibo/user_profile.rb
meibo-0.6.0 lib/meibo/user_profile.rb
meibo-0.5.0 lib/meibo/user_profile.rb
meibo-0.4.0 lib/meibo/user_profile.rb
meibo-0.3.0 lib/meibo/user_profile.rb
meibo-0.2.0 lib/meibo/user_profile.rb
meibo-0.1.0 lib/meibo/user_profile.rb