Class: Otis::HttpClient

Inherits:
Client
  • Object
show all
Defined in:
lib/otis/http_client.rb

Instance Method Summary collapse

Methods included from Hooks

included

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

#operationsObject



10
11
12
# File 'lib/otis/http_client.rb', line 10

def operations
  @routes.keys
end