Class: ShippingConnector::Shipment::Event
- Inherits:
-
Object
- Object
- ShippingConnector::Shipment::Event
- Defined in:
- lib/shipping_connector/shipment.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(params = {}) ⇒ Event
Returns a new instance of Event.
14 15 16 |
# File 'lib/shipping_connector/shipment.rb', line 14 def initialize(params = {}) params.each { |key, value| instance_variable_set("@#{key}", value) } end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
12 13 14 |
# File 'lib/shipping_connector/shipment.rb', line 12 def description @description end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
12 13 14 |
# File 'lib/shipping_connector/shipment.rb', line 12 def location @location end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
12 13 14 |
# File 'lib/shipping_connector/shipment.rb', line 12 def time @time end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/shipping_connector/shipment.rb', line 12 def type @type end |