Class: Postmen::Item
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#hs_code ⇒ Object
readonly
Returns the value of attribute hs_code.
-
#item_id ⇒ Object
readonly
Returns the value of attribute item_id.
-
#origin_country ⇒ Object
readonly
Returns the value of attribute origin_country.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#sku ⇒ Object
readonly
Returns the value of attribute sku.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(options) ⇒ Item
constructor
A new instance of Item.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Item
Returns a new instance of Item.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/postmen/item.rb', line 14 def initialize() @description = [:description] @quantity = [:quantity] @price = [:price] @weight = [:weight] @item_id = [:item_id] @origin_country = [:origin_country] @sku = [:sku] @hs_code = [:hs_code] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def description @description end |
#hs_code ⇒ Object (readonly)
Returns the value of attribute hs_code.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def hs_code @hs_code end |
#item_id ⇒ Object (readonly)
Returns the value of attribute item_id.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def item_id @item_id end |
#origin_country ⇒ Object (readonly)
Returns the value of attribute origin_country.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def origin_country @origin_country end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def price @price end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def quantity @quantity end |
#sku ⇒ Object (readonly)
Returns the value of attribute sku.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def sku @sku end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
5 6 7 |
# File 'lib/postmen/item.rb', line 5 def weight @weight end |