Class: ShippingConnector::Shipment::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/shipping_connector/shipment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



12
13
14
# File 'lib/shipping_connector/shipment.rb', line 12

def description
  @description
end

#locationObject (readonly)

Returns the value of attribute location.



12
13
14
# File 'lib/shipping_connector/shipment.rb', line 12

def location
  @location
end

#timeObject (readonly)

Returns the value of attribute time.



12
13
14
# File 'lib/shipping_connector/shipment.rb', line 12

def time
  @time
end

#typeObject (readonly)

Returns the value of attribute type.



12
13
14
# File 'lib/shipping_connector/shipment.rb', line 12

def type
  @type
end