class Oidc::ResponseObject::UserInfo
def address=(hash_or_address)
def address=(hash_or_address) @address = case hash_or_address when Hash Address.new hash_or_address when Address hash_or_address end end
def initialize(attributes = {})
def initialize(attributes = {}) super (all_attributes - [:email_verified, :phone_number_verified, :address, :updated_at]).each do |key| self.send "#{key}=", self.send(key).try(:to_s) end self.updated_at = updated_at.try(:to_i) end
def validate_address
def validate_address errors.add :address, address.errors.full_messages.join(', ') if address.present? && !address.valid? end