Class: Xeroizer::PrivateApplication
- Inherits:
-
GenericApplication
- Object
- GenericApplication
- Xeroizer::PrivateApplication
- Extended by:
- Forwardable
- Defined in:
- lib/xeroizer/private_application.rb
Constant Summary
Constants included from Http
Instance Attribute Summary
Attributes inherited from GenericApplication
#client, #logger, #rate_limit_max_attempts, #rate_limit_sleep, #xero_url
Instance Method Summary collapse
-
#initialize(consumer_key, consumer_secret, path_to_private_key, options = {}) ⇒ PrivateApplication
constructor
Private applications are defined in the Xero API website and can be accessed in the background without ever requiring a redirect to the Xero website for authorisation.
Methods included from Record::ApplicationHelper
Methods included from Http
#http_get, #http_post, #http_put
Constructor Details
#initialize(consumer_key, consumer_secret, path_to_private_key, options = {}) ⇒ PrivateApplication
Private applications are defined in the Xero API website and can be accessed in the background without ever requiring a redirect to the Xero website for authorisation.
17 18 19 20 21 22 23 24 |
# File 'lib/xeroizer/private_application.rb', line 17 def initialize(consumer_key, consumer_secret, path_to_private_key, = {}) .merge!( :signature_method => 'RSA-SHA1', :private_key_file => path_to_private_key ) super(consumer_key, consumer_secret, ) @client.(consumer_key, consumer_secret) end |