Class: Conekta::LineItem
- Inherits:
-
Resource
- Object
- Hash
- ConektaObject
- Resource
- Conekta::LineItem
- Defined in:
- lib/conekta/line_item.rb
Instance Attribute Summary collapse
-
#brand ⇒ Object
Returns the value of attribute brand.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#shippable ⇒ Object
Returns the value of attribute shippable.
-
#sku ⇒ Object
Returns the value of attribute sku.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
Attributes inherited from Resource
Attributes inherited from ConektaObject
Instance Method Summary collapse
Methods included from Operations::CustomAction
Methods included from Operations::Update
Methods included from Operations::Delete
Methods inherited from Resource
_url, #create_member_with_relation, #initialize, underscored_class
Methods inherited from ConektaObject
#class_name, class_name, #create_attr, #first, #initialize, #inspect, #last, #load_from, #set_val, #to_s, #unset_key
Constructor Details
This class inherits a constructor from Conekta::Resource
Instance Attribute Details
#brand ⇒ Object
Returns the value of attribute brand.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def brand @brand end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def name @name end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def parent_id @parent_id end |
#quantity ⇒ Object
Returns the value of attribute quantity.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def quantity @quantity end |
#shippable ⇒ Object
Returns the value of attribute shippable.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def shippable @shippable end |
#sku ⇒ Object
Returns the value of attribute sku.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def sku @sku end |
#tags ⇒ Object
Returns the value of attribute tags.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def @tags end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def type @type end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
7 8 9 |
# File 'lib/conekta/line_item.rb', line 7 def unit_price @unit_price end |
Instance Method Details
#_url ⇒ Object
11 12 13 14 15 |
# File 'lib/conekta/line_item.rb', line 11 def _url ensure_id "#{self.order._url}#{self.class._url}/#{id}" end |
#delete ⇒ Object
17 18 19 |
# File 'lib/conekta/line_item.rb', line 17 def delete self.delete_member('order','line_items') end |