Class: Evri::RPX::Mappings

Inherits:
Object
  • Object
show all
Defined in:
lib/evri/rpx/mappings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#jsonObject (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

#identifiersObject

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