Sha256: 6695f5a80ef61137f189fff85b707240e235cfaa10bd44270b5c7de67c986691

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

module Evri
  module RPX
    class Mappings
      # Gives back the raw JSON returned by RPX.
      attr_reader :json
      alias :raw :json

      def initialize(json)
        @json = json
      end

      # Returns a list of identifiers for a user, or an empty
      # array if there are none.
      def identifiers
        @json['identifiers'] || []
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
dbalatero-evri_rpx-1.0.0 lib/evri/rpx/mappings.rb
dbalatero-evri_rpx-1.0.1 lib/evri/rpx/mappings.rb
dbalatero-evri_rpx-1.0.2 lib/evri/rpx/mappings.rb
evri_rpx-1.0.0 lib/evri/rpx/mappings.rb