Class: RSimperium::Api
- Inherits:
-
Object
- Object
- RSimperium::Api
- Defined in:
- lib/r_simperium/api.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
- #get_item(name) ⇒ Object
-
#initialize(app_id, auth_token, options = {}) ⇒ Api
constructor
A new instance of Api.
Constructor Details
#initialize(app_id, auth_token, options = {}) ⇒ Api
TODO:
Document
Returns a new instance of Api.
5 6 7 8 9 |
# File 'lib/r_simperium/api.rb', line 5 def initialize(app_id, auth_token, ={}) @app_id = app_id @token = auth_token = end |
Instance Method Details
#[](name) ⇒ Object
12 13 14 |
# File 'lib/r_simperium/api.rb', line 12 def [](name) get_item(name) end |
#get_item(name) ⇒ Object
17 18 19 |
# File 'lib/r_simperium/api.rb', line 17 def get_item(name) Bucket.new(@app_id, @token, name.to_s, ) end |