Class: BoaVista::Http
- Inherits:
-
Object
- Object
- BoaVista::Http
- Defined in:
- lib/boa_vista/http.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(uri, has_proxy = BoaVista.configuration.has_proxy?) ⇒ Http
constructor
A new instance of Http.
Constructor Details
#initialize(uri, has_proxy = BoaVista.configuration.has_proxy?) ⇒ Http
Returns a new instance of Http.
6 7 8 9 |
# File 'lib/boa_vista/http.rb', line 6 def initialize(uri, has_proxy = BoaVista.configuration.has_proxy?) @uri = uri @has_proxy = has_proxy end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/boa_vista/http.rb', line 11 def call @has_proxy ? execute_request_using_proxy : execute_request end |