lib/meibo/user_profile.rb in meibo-0.16.0 vs lib/meibo/user_profile.rb in meibo-0.17.0
- old
+ new
@@ -3,29 +3,30 @@
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'
+ 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],
+ required: %i[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)
+ def initialize(sourced_id:, user_sourced_id:, profile_type:, vendor_id:, credential_type:, username:, status: nil, date_last_modified: nil,
+ application_id: nil, description: nil, 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