Class: Cloudmine::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/cloudmine/base.rb

Direct Known Subclasses

Object

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, app_id) ⇒ Base

Returns a new instance of 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_keyObject

Returns the value of attribute api_key.



32
33
34
# File 'lib/cloudmine/base.rb', line 32

def api_key
  @api_key
end

.app_idObject

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_keyObject

Returns the value of attribute api_key.



24
25
26
# File 'lib/cloudmine/base.rb', line 24

def api_key
  @api_key
end

#app_idObject

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