Class: OAuth::ConsumerToken

Inherits:
Token
  • Object
show all
Defined in:
lib/oauth/token.rb

Overview

Superclass for tokens used by OAuth Clients

Direct Known Subclasses

AccessToken, RequestToken

Instance Attribute Summary collapse

Attributes inherited from Token

#secret, #token

Instance Method Summary collapse

Methods inherited from Token

#to_query

Methods included from Key

#escape, #generate_key

Constructor Details

#initialize(consumer, token, secret) ⇒ ConsumerToken

Returns a new instance of ConsumerToken.



32
33
34
35
# File 'lib/oauth/token.rb', line 32

def initialize(consumer,token,secret)
  super token,secret
  @consumer=consumer
end

Instance Attribute Details

#consumerObject

Returns the value of attribute consumer.



30
31
32
# File 'lib/oauth/token.rb', line 30

def consumer
  @consumer
end