Class: ActiveMerchant::Shipping::ShipmentEvent
- Defined in:
- lib/active_shipping/shipping/shipment_event.rb
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.
7 8 9 |
# File 'lib/active_shipping/shipping/shipment_event.rb', line 7 def initialize(name, time, location, =nil) @name, @time, @location, = name, time, location, end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5 def location @location end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5 def end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5 def name @name end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
5 6 7 |
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5 def time @time end |