Sha256: 6e34cbf1f4496daf0a8a4a1dce3f5ca3b192bedd4c840655a590f005d26dce0d
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
module Yoti # # Encapsulates Yoti user profile # class BaseProfile # # Return all attributes for the profile. # # @return [Hash{String => Yoti::Attribute}] # attr_reader :attributes # # @param [Hash{String => Yoti::Attribute}] profile_data # def initialize(profile_data) @attributes = profile_data.is_a?(Object) ? profile_data : {} end # # Get attribute value by name. # # @param [String] attr_name # # @return [Attribute, nil] # def get_attribute(attr_name) return nil unless @attributes.key? attr_name @attributes[attr_name] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yoti-1.5.0 | lib/yoti/data_type/base_profile.rb |