Class: Hachi::Clients::Base
- Inherits:
-
Object
- Object
- Hachi::Clients::Base
- Defined in:
- lib/hachi/clients/base.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
readonly
Returns the value of attribute api_endpoint.
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(api_endpoint:, api_key:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(api_endpoint:, api_key:) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/hachi/clients/base.rb', line 13 def initialize(api_endpoint:, api_key:) @api_endpoint = URI(api_endpoint) @api_key = api_key end |
Instance Attribute Details
#api_endpoint ⇒ Object (readonly)
Returns the value of attribute api_endpoint.
10 11 12 |
# File 'lib/hachi/clients/base.rb', line 10 def api_endpoint @api_endpoint end |
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/hachi/clients/base.rb', line 11 def api_key @api_key end |