Class: Cloudkick::Base
- Inherits:
-
Object
- Object
- Cloudkick::Base
- Defined in:
- lib/cloudkick/base.rb
Instance Method Summary collapse
- #access_token ⇒ Object
- #consumer ⇒ Object
- #get(type, query = nil) ⇒ Object
-
#initialize(consumer_key, consumer_secret) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(consumer_key, consumer_secret) ⇒ Base
Returns a new instance of Base.
28 29 30 31 |
# File 'lib/cloudkick/base.rb', line 28 def initialize(consumer_key, consumer_secret) @@key = consumer_key @@secret = consumer_secret end |
Instance Method Details
#access_token ⇒ Object
39 40 41 |
# File 'lib/cloudkick/base.rb', line 39 def access_token @@access_token ||= OAuth::AccessToken.new(consumer) end |
#consumer ⇒ Object
33 34 35 36 37 |
# File 'lib/cloudkick/base.rb', line 33 def consumer @@consumer ||= OAuth::Consumer.new(@@key, @@secret, :site => 'https://api.cloudkick.com', :http_method => :get) end |