Sha256: 716cb5d4368b54b483fb9bd4c4b35a29fb1dfa80226e6948637dfc15d577cdb7

Contents?: true

Size: 459 Bytes

Versions: 13

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module Trusona
  module Resources
    #
    ## A record representing a user in the Trusona API
    class User < BaseResource
      include Trusona::Helpers::KeyNormalizer

      attr_reader :id, :user_identifier

      def initialize(params = {})
        super
        @params = normalize_keys(params)

        @user_identifier = @params[:user_identifier]
        @id              = @user_identifier
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
trusona-2.5.3 lib/trusona/resources/user.rb
trusona-2.5.2 lib/trusona/resources/user.rb
trusona-2.5.1 lib/trusona/resources/user.rb
trusona-2.5.0 lib/trusona/resources/user.rb
trusona-2.4.0 lib/trusona/resources/user.rb
trusona-2.3.0 lib/trusona/resources/user.rb
trusona-2.2.0 lib/trusona/resources/user.rb
trusona-2.1.0 lib/trusona/resources/user.rb
trusona-2.0.0 lib/trusona/resources/user.rb
trusona-1.0.1 lib/trusona/resources/user.rb
trusona-1.0.0 lib/trusona/resources/user.rb
trusona-0.20.0 lib/trusona/resources/user.rb
trusona-0.19.0 lib/trusona/resources/user.rb