Class: Mocodo::Client
- Inherits:
-
Object
- Object
- Mocodo::Client
- Defined in:
- lib/mocodo/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#https ⇒ Object
Returns the value of attribute https.
Instance Method Summary collapse
- #get_api_key ⇒ Object
-
#initialize(api_key) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key) ⇒ Client
Returns a new instance of Client.
7 8 9 |
# File 'lib/mocodo/client.rb', line 7 def initialize(api_key) self.api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/mocodo/client.rb', line 5 def api_key @api_key end |
#https ⇒ Object
Returns the value of attribute https.
5 6 7 |
# File 'lib/mocodo/client.rb', line 5 def https @https end |
Instance Method Details
#get_api_key ⇒ Object
11 12 13 |
# File 'lib/mocodo/client.rb', line 11 def get_api_key return self.api_key end |