Class: Etna::Client
- Inherits:
-
Object
- Object
- Etna::Client
- Defined in:
- lib/etna/client.rb
Instance Attribute Summary collapse
-
#routes ⇒ Object
readonly
Returns the value of attribute routes.
Instance Method Summary collapse
-
#initialize(host, token) ⇒ Client
constructor
A new instance of Client.
- #route_path(route, params) ⇒ Object
Constructor Details
#initialize(host, token) ⇒ Client
Returns a new instance of Client.
7 8 9 10 11 12 13 14 |
# File 'lib/etna/client.rb', line 7 def initialize(host, token) @host = host.sub(%r!/$!,'') @token = token set_routes define_route_helpers end |
Instance Attribute Details
#routes ⇒ Object (readonly)
Returns the value of attribute routes.
16 17 18 |
# File 'lib/etna/client.rb', line 16 def routes @routes end |