Class: Cloudmine::Base
- Inherits:
-
Object
- Object
- Cloudmine::Base
- Includes:
- HTTParty
- Defined in:
- lib/cloudmine/base.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.app_id ⇒ Object
Returns the value of attribute app_id.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key, app_id) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(api_key, app_id) ⇒ Base
26 27 28 29 |
# File 'lib/cloudmine/base.rb', line 26 def initialize(api_key, app_id) self.api_key = api_key self.app_id = app_id end |
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
32 33 34 |
# File 'lib/cloudmine/base.rb', line 32 def api_key @api_key end |
.app_id ⇒ Object
Returns the value of attribute app_id.
32 33 34 |
# File 'lib/cloudmine/base.rb', line 32 def app_id @app_id end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
24 25 26 |
# File 'lib/cloudmine/base.rb', line 24 def api_key @api_key end |
#app_id ⇒ Object
Returns the value of attribute app_id.
24 25 26 |
# File 'lib/cloudmine/base.rb', line 24 def app_id @app_id end |
Class Method Details
.method_missing(sym, *args, &block) ⇒ Object
34 35 36 |
# File 'lib/cloudmine/base.rb', line 34 def method_missing(sym, *args, &block) new(Cloudmine.api_key, Cloudmine.app_id).send(sym, *args, &block) end |