class GlobalRegistryModels::Entity::Person
Public Class Methods
new(params)
click to toggle source
Calls superclass method
GlobalRegistryModels::Entity::Base::new
# File lib/global_registry_models/entity/person.rb, line 10 def initialize(params) super self.key_guid = params['authentication'] && params['authentication']['key_guid'] unless self.key_guid end
Private Class Methods
specific_attributes_preparations(object, attributes)
click to toggle source
Calls superclass method
GlobalRegistryModels::Entity::Base::specific_attributes_preparations
# File lib/global_registry_models/entity/person.rb, line 21 def self.specific_attributes_preparations(object, attributes) attributes = super(object, attributes) attributes['authentication'] = {'key_guid' => attributes['key_guid']} if attributes['key_guid'] attributes.delete('key_guid') attributes end
Public Instance Methods
to_s()
click to toggle source
# File lib/global_registry_models/entity/person.rb, line 15 def to_s [first_name, last_name].compact.join(' ') end