Class: Xeroizer::PublicApplication

Inherits:
GenericApplication show all
Extended by:
Forwardable
Defined in:
lib/xeroizer/public_application.rb

Constant Summary

Constants included from Http

Http::ACCEPT_MIME_MAP

Instance Attribute Summary

Attributes inherited from GenericApplication

#client, #logger, #rate_limit_max_attempts, #rate_limit_sleep, #xero_url

Instance Method Summary collapse

Methods included from Record::ApplicationHelper

#record, #report

Methods included from Http

#http_get, #http_post, #http_put

Constructor Details

#initialize(consumer_key, consumer_secret, options = {}) ⇒ PublicApplication

Public appliations are authenticated via the Xero website via OAuth. AccessTokens are valid for 30 minutes after authentication. To extend this time you must redirect the user to Xero’s OAuth server again.

Parameters:

  • consumer_key (String)

    consumer key/token from application developer (found at api.xero.com for your application)

  • consumer_secret (String)

    consumer secret from application developer (found at api.xero.com for your application)

  • options (Hash) (defaults to: {})

    other options to pass to the GenericApplication constructor



16
17
18
# File 'lib/xeroizer/public_application.rb', line 16

def initialize(consumer_key, consumer_secret, options = {})
  super(consumer_key, consumer_secret, options)
end