Class: OpenTransactToken

Inherits:
ConsumerToken show all
Defined in:
lib/oauth/models/consumers/services/opentransact_token.rb

Direct Known Subclasses

PicomoneyToken

Instance Method Summary collapse

Methods inherited from ConsumerToken

find_or_create_from_access_token

Methods included from Oauth::Models::Consumers::Token

included

Instance Method Details

#clientObject

def self.consumer

  @consumer||=server.consumer
end


12
13
14
# File 'lib/oauth/models/consumers/services/opentransact_token.rb', line 12

def client
  @client ||= OpenTransact::Client.new self.class.credentials.merge( {:token=>token, :secret=>secret})
end