Class: Omniship::ShipmentEvent
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(name, time, location, message = nil) ⇒ ShipmentEvent
constructor
A new instance of ShipmentEvent.
Constructor Details
#initialize(name, time, location, message = nil) ⇒ ShipmentEvent
Returns a new instance of ShipmentEvent.
6 7 8 |
# File 'lib/omniship/shipment_event.rb', line 6 def initialize(name, time, location, =nil) @name, @time, @location, @message = name, time, location, end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/omniship/shipment_event.rb', line 4 def location @location end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/omniship/shipment_event.rb', line 4 def @message end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/omniship/shipment_event.rb', line 4 def name @name end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
4 5 6 |
# File 'lib/omniship/shipment_event.rb', line 4 def time @time end |