Class: AcpcDealer::ConnectionInformation

Inherits:
Struct
  • Object
show all
Defined in:
lib/acpc_dealer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port_number, host_name = 'localhost') ⇒ ConnectionInformation

Returns a new instance of ConnectionInformation.



44
45
46
# File 'lib/acpc_dealer.rb', line 44

def initialize(port_number, host_name = 'localhost')
  super port_number, host_name
end

Instance Attribute Details

#host_nameObject

Returns the value of attribute host_name

Returns:

  • (Object)

    the current value of host_name



43
44
45
# File 'lib/acpc_dealer.rb', line 43

def host_name
  @host_name
end

#port_numberObject

Returns the value of attribute port_number

Returns:

  • (Object)

    the current value of port_number



43
44
45
# File 'lib/acpc_dealer.rb', line 43

def port_number
  @port_number
end