Sha256: 63b691929b65463578fb657ca3d72bab2935b3b4f78991680fc34d3cd7b7b175
Contents?: true
Size: 949 Bytes
Versions: 3
Compression:
Stored size: 949 Bytes
Contents
module Ipizza class AuthenticationResponse < Ipizza::Response def success? %w(3012 3013).include?(@params['VK_SERVICE']) end def valid? @valid end def info_social_security_id authentication_info.user_id end def info_name authentication_info.user_name end def authentication_info @authentication_info ||= Ipizza::Authentication.new( provider: @params['VK_SND_ID'], user: @params['VK_USER'], message_time: @params['VK_DATETIME'], sender_id: @params['VK_SND_ID'], receiver_id: @params['VK_REC_ID'], user_name: @params['VK_USER_NAME'], user_id: @params['VK_USER_ID'], country: @params['VK_COUNTRY'], other: @params['VK_OTHER'], authentication_identifier: @params['VK_TOKEN'], request_identifier: @params['VK_RID'], nonce: @params['VK_NONCE'] ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ipizza-2.1.0 | lib/ipizza/authentication_response.rb |
ipizza-2.0.1 | lib/ipizza/authentication_response.rb |
ipizza-2.0.0 | lib/ipizza/authentication_response.rb |