Class: Omniship::ShipmentEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/omniship/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.



6
7
8
# File 'lib/omniship/shipment_event.rb', line 6

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.



4
5
6
# File 'lib/omniship/shipment_event.rb', line 4

def location
  @location
end

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/omniship/shipment_event.rb', line 4

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/omniship/shipment_event.rb', line 4

def name
  @name
end

#timeObject (readonly)

Returns the value of attribute time.



4
5
6
# File 'lib/omniship/shipment_event.rb', line 4

def time
  @time
end