Class: PayPal::Permissions::Response::Permission

Inherits:
Object
  • Object
show all
Includes:
Common::Response
Defined in:
lib/paypal/permissions/response/permission.rb

Instance Attribute Summary collapse

Attributes included from Common::Response

#error

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_envelopeObject

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

#scopeObject

Returns the value of attribute scope.



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

def scope
  @scope
end

#tokenObject

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_urlObject



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