Class: OpenTransactToken
- Inherits:
-
ConsumerToken
- Object
- ActiveRecord::Base
- ConsumerToken
- OpenTransactToken
- Defined in:
- lib/oauth/models/consumers/services/opentransact_token.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#client ⇒ Object
def self.consumer @consumer||=server.consumer end.
Methods inherited from ConsumerToken
find_or_create_from_access_token
Methods included from Oauth::Models::Consumers::Token
Instance Method Details
#client ⇒ Object
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 |