Class: Noahru::Client
- Inherits:
-
Object
- Object
- Noahru::Client
- Defined in:
- lib/noahru/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
-
#initialize(api_key, base_url = BaseURL) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key, base_url = BaseURL) ⇒ Client
Returns a new instance of Client.
8 9 10 11 |
# File 'lib/noahru/client.rb', line 8 def initialize(api_key, base_url = BaseURL) @api_key = api_key @base_url = base_url end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/noahru/client.rb', line 6 def api_key @api_key end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
6 7 8 |
# File 'lib/noahru/client.rb', line 6 def base_url @base_url end |