Class: Cargowise::Consol
- Inherits:
-
AbstractResult
- Object
- AbstractResult
- Cargowise::Consol
- 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
-
#console_mode ⇒ Object
readonly
Returns the value of attribute console_mode.
-
#discharge_port ⇒ Object
readonly
Returns the value of attribute discharge_port.
-
#load_port ⇒ Object
readonly
Returns the value of attribute load_port.
-
#master_bill ⇒ Object
readonly
Returns the value of attribute master_bill.
-
#transport_mode ⇒ Object
readonly
Returns the value of attribute transport_mode.
-
#vessel_name ⇒ Object
readonly
Returns the value of attribute vessel_name.
-
#voyage_flight ⇒ Object
readonly
Returns the value of attribute voyage_flight.
Instance Method Summary collapse
-
#initialize(node) ⇒ Consol
constructor
A new instance of Consol.
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_mode ⇒ Object (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_port ⇒ Object (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_port ⇒ Object (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_bill ⇒ Object (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_mode ⇒ Object (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_name ⇒ Object (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_flight ⇒ Object (readonly)
Returns the value of attribute voyage_flight.
12 13 14 |
# File 'lib/cargowise/consol.rb', line 12 def voyage_flight @voyage_flight end |