Class: ActiveMerchant::Shipping::ShipmentEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/active_shipping/shipping/shipment_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message=nil)
  @name, @time, @location, @message = name, time, location, message
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



5
6
7
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5

def location
  @location
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5

def name
  @name
end

#timeObject (readonly)

Returns the value of attribute time.



5
6
7
# File 'lib/active_shipping/shipping/shipment_event.rb', line 5

def time
  @time
end