Class: QaddyClient::OrderItem

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/qaddy_client/order_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_textObject (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

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/qaddy_client/order_item.rb', line 6

def description
  @description
end

#image_urlObject (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

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/qaddy_client/order_item.rb', line 8

def name
  @name
end

#page_urlObject (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

#qtyObject (readonly)

Returns the value of attribute qty.



10
11
12
# File 'lib/qaddy_client/order_item.rb', line 10

def qty
  @qty
end

#totalObject (readonly)

Returns the value of attribute total.



11
12
13
# File 'lib/qaddy_client/order_item.rb', line 11

def total
  @total
end