Class: Yoti::ApplicationProfile

Inherits:
BaseProfile show all
Defined in:
lib/yoti/data_type/application_profile.rb

Overview

Profile of an application with convenience methods to access well-known attributes.

Instance Attribute Summary

Attributes inherited from BaseProfile

#attributes

Instance Method Summary collapse

Methods inherited from BaseProfile

#get_attribute, #initialize

Constructor Details

This class inherits a constructor from Yoti::BaseProfile

Instance Method Details

#logoAttribute?

The logo of the application that will be displayed to users that perform a share with it.

Returns:



29
30
31
# File 'lib/yoti/data_type/application_profile.rb', line 29

def 
  get_attribute(Yoti::Attribute::APPLICATION_LOGO)
end

#nameAttribute?

The name of the application.

Returns:



11
12
13
# File 'lib/yoti/data_type/application_profile.rb', line 11

def name
  get_attribute(Yoti::Attribute::APPLICATION_NAME)
end

#receipt_bgcolorAttribute?

The background color that will be displayed on each receipt the user gets, as a result of a share with the application.

Returns:



39
40
41
# File 'lib/yoti/data_type/application_profile.rb', line 39

def receipt_bgcolor
  get_attribute(Yoti::Attribute::APPLICATION_RECEIPT_BGCOLOR)
end

#urlAttribute?

The URL where the application is available at.

Returns:



20
21
22
# File 'lib/yoti/data_type/application_profile.rb', line 20

def url
  get_attribute(Yoti::Attribute::APPLICATION_URL)
end