Class: PayPal::Permissions::Response::Permission
- Inherits:
-
Object
- Object
- PayPal::Permissions::Response::Permission
- Includes:
- Common::Response
- Defined in:
- lib/paypal/permissions/response/permission.rb
Instance Attribute Summary collapse
-
#response_envelope ⇒ Object
Returns the value of attribute response_envelope.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token ⇒ Object
Returns the value of attribute token.
Attributes included from Common::Response
Instance Method Summary collapse
Methods included from Common::Response
#errors, #set_error, #set_response_envelope, #success?, #valid?
Methods included from Common::Base
#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore
Instance Attribute Details
#response_envelope ⇒ Object
Returns the value of attribute response_envelope.
7 8 9 |
# File 'lib/paypal/permissions/response/permission.rb', line 7 def response_envelope @response_envelope end |
#scope ⇒ Object
Returns the value of attribute scope.
6 7 8 |
# File 'lib/paypal/permissions/response/permission.rb', line 6 def scope @scope end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/paypal/permissions/response/permission.rb', line 5 def token @token end |
Instance Method Details
#request_url ⇒ Object
9 10 11 |
# File 'lib/paypal/permissions/response/permission.rb', line 9 def request_url "#{PayPal::Permissions::Api.site_endpoint}?cmd=_grant-permission&request_token=#{self.token}" end |