Class: MPIClient::BaseRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/mpi_client/base_request.rb

Constant Summary collapse

FILTERED_FIELDS =
[]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseRequest

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
  options = {
    :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, options)
  @connection.logger = MPIClient.logger if MPIClient.logger
  set_logger_filters
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



4
5
6
# File 'lib/mpi_client/base_request.rb', line 4

def connection
  @connection
end