Class: Evri::RPX::Mappings
- Inherits:
-
Object
- Object
- Evri::RPX::Mappings
- Defined in:
- lib/evri/rpx/mappings.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
(also: #raw)
readonly
Gives back the raw JSON returned by RPX.
Instance Method Summary collapse
-
#identifiers ⇒ Object
Returns a list of identifiers for a user, or an empty array if there are none.
-
#initialize(json) ⇒ Mappings
constructor
A new instance of Mappings.
Constructor Details
#initialize(json) ⇒ Mappings
Returns a new instance of Mappings.
8 9 10 |
# File 'lib/evri/rpx/mappings.rb', line 8 def initialize(json) @json = json end |
Instance Attribute Details
#json ⇒ Object (readonly) Also known as: raw
Gives back the raw JSON returned by RPX.
5 6 7 |
# File 'lib/evri/rpx/mappings.rb', line 5 def json @json end |
Instance Method Details
#identifiers ⇒ Object
Returns a list of identifiers for a user, or an empty array if there are none.
14 15 16 |
# File 'lib/evri/rpx/mappings.rb', line 14 def identifiers @json['identifiers'] || [] end |