Class: PayPal::Permissions::Token

Inherits:
Base
  • Object
show all
Defined in:
lib/paypal/permissions/token.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#request_envelope

Instance Method Summary collapse

Methods inherited from Base

#request

Methods included from Common::Base

#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore

Instance Attribute Details

#subject_aliasObject

Returns the value of attribute subject_alias.



6
7
8
# File 'lib/paypal/permissions/token.rb', line 6

def subject_alias
  @subject_alias
end

#tokenObject

Returns the value of attribute token.



4
5
6
# File 'lib/paypal/permissions/token.rb', line 4

def token
  @token
end

#verifierObject

Returns the value of attribute verifier.



5
6
7
# File 'lib/paypal/permissions/token.rb', line 5

def verifier
  @verifier
end

Instance Method Details

#access_tokenObject



8
9
10
# File 'lib/paypal/permissions/token.rb', line 8

def access_token
  Response.process(:get_access_token, request.run(:get_access_token, self.to_hash(:token, :verifier, :subject_alias, :request_envelope)))
end