Class: QaddyClient::OrderItem
- Inherits:
-
Object
- Object
- QaddyClient::OrderItem
- Includes:
- Helpers
- Defined in:
- lib/qaddy_client/order_item.rb
Instance Attribute Summary collapse
-
#default_sharing_text ⇒ Object
readonly
Returns the value of attribute default_sharing_text.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#page_url ⇒ Object
readonly
Returns the value of attribute page_url.
-
#qty ⇒ Object
readonly
Returns the value of attribute qty.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ OrderItem
constructor
A new instance of OrderItem.
Methods included from Helpers
#instance_variables_to_hash, #to_json
Constructor Details
#initialize(attributes) ⇒ OrderItem
Returns a new instance of OrderItem.
13 14 15 16 17 18 19 20 21 |
# File 'lib/qaddy_client/order_item.rb', line 13 def initialize(attributes) @default_sharing_text = attributes[:default_sharing_text] @description = attributes[:description] @image_url = attributes[:image_url] @name = attributes[:name] @page_url = attributes[:page_url] @qty = attributes[:qty] @total = attributes[:total] end |
Instance Attribute Details
#default_sharing_text ⇒ Object (readonly)
Returns the value of attribute default_sharing_text.
5 6 7 |
# File 'lib/qaddy_client/order_item.rb', line 5 def default_sharing_text @default_sharing_text end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/qaddy_client/order_item.rb', line 6 def description @description end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
7 8 9 |
# File 'lib/qaddy_client/order_item.rb', line 7 def image_url @image_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/qaddy_client/order_item.rb', line 8 def name @name end |
#page_url ⇒ Object (readonly)
Returns the value of attribute page_url.
9 10 11 |
# File 'lib/qaddy_client/order_item.rb', line 9 def page_url @page_url end |
#qty ⇒ Object (readonly)
Returns the value of attribute qty.
10 11 12 |
# File 'lib/qaddy_client/order_item.rb', line 10 def qty @qty end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
11 12 13 |
# File 'lib/qaddy_client/order_item.rb', line 11 def total @total end |