Class: MPIClient::BaseRequest
- Inherits:
-
Object
- Object
- MPIClient::BaseRequest
- Defined in:
- lib/mpi_client/base_request.rb
Direct Known Subclasses
Constant Summary collapse
- FILTERED_FIELDS =
[]
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize ⇒ BaseRequest
constructor
A new instance of BaseRequest.
Constructor Details
#initialize ⇒ BaseRequest
Returns a new instance of BaseRequest.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mpi_client/base_request.rb', line 6 def initialize = { :proxy_addr => MPIClient.proxy_addr, :proxy_port => MPIClient.proxy_port, :proxy_user => MPIClient.proxy_user, :proxy_pass => MPIClient.proxy_pass } @connection = Network::Connection.new(MPIClient.server_url, ) @connection.logger = MPIClient.logger if MPIClient.logger set_logger_filters end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/mpi_client/base_request.rb', line 4 def connection @connection end |