Class: Cargowise::Consol

Inherits:
AbstractResult show all
Defined in:
lib/cargowise/consol.rb

Overview

Extra shipping detail associated with a Shipment. Not built directly, but available via the consols() attribute of the Shipment model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractResult

endpoint, #inspect, register, via

Constructor Details

#initialize(node) ⇒ Consol

Returns a new instance of Consol.



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/cargowise/consol.rb', line 15

def initialize(node)
  @node = node

  @master_bill    = text_value("./MasterBill")
  @console_mode   = text_value("./ConsolMode")
  @transport_mode = text_value("./TransportMode")
  @vessel_name    = text_value("./VesselName")
  @voyage_flight  = text_value("./VoyageFlight")
  @load_port      = text_value("./LoadPort")
  @discharge_port = text_value("./DischargePort")
end

Instance Attribute Details

#console_modeObject (readonly)

Returns the value of attribute console_mode.



11
12
13
# File 'lib/cargowise/consol.rb', line 11

def console_mode
  @console_mode
end

#discharge_portObject (readonly)

Returns the value of attribute discharge_port.



13
14
15
# File 'lib/cargowise/consol.rb', line 13

def discharge_port
  @discharge_port
end

#load_portObject (readonly)

Returns the value of attribute load_port.



13
14
15
# File 'lib/cargowise/consol.rb', line 13

def load_port
  @load_port
end

#master_billObject (readonly)

Returns the value of attribute master_bill.



11
12
13
# File 'lib/cargowise/consol.rb', line 11

def master_bill
  @master_bill
end

#transport_modeObject (readonly)

Returns the value of attribute transport_mode.



11
12
13
# File 'lib/cargowise/consol.rb', line 11

def transport_mode
  @transport_mode
end

#vessel_nameObject (readonly)

Returns the value of attribute vessel_name.



12
13
14
# File 'lib/cargowise/consol.rb', line 12

def vessel_name
  @vessel_name
end

#voyage_flightObject (readonly)

Returns the value of attribute voyage_flight.



12
13
14
# File 'lib/cargowise/consol.rb', line 12

def voyage_flight
  @voyage_flight
end