Class: Otis::HttpClient
Instance Method Summary collapse
-
#initialize(map, url) ⇒ HttpClient
constructor
A new instance of HttpClient.
- #operations ⇒ Object
Methods included from Hooks
Constructor Details
#initialize(map, url) ⇒ HttpClient
Returns a new instance of HttpClient.
5 6 7 8 |
# File 'lib/otis/http_client.rb', line 5 def initialize(map, url) @routes = map.routes @client = create_client(url) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Otis::Client
Instance Method Details
#operations ⇒ Object
10 11 12 |
# File 'lib/otis/http_client.rb', line 10 def operations @routes.keys end |