Class: Billogram::Item
- Includes:
- Endpoint
- Defined in:
- lib/billogram/resources/item.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#item_no ⇒ Object
(also: #id)
Returns the value of attribute item_no.
-
#price ⇒ Object
Returns the value of attribute price.
-
#title ⇒ Object
Returns the value of attribute title.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#vat ⇒ Object
Returns the value of attribute vat.
Instance Method Summary collapse
Methods included from Endpoint
Methods inherited from Resource
build_objects, #initialize, relation, relations, #to_hash, #to_json
Constructor Details
This class inherits a constructor from Billogram::Resource
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def count @count end |
#created_at ⇒ Object
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def description @description end |
#discount ⇒ Object
Returns the value of attribute discount.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def discount @discount end |
#item_no ⇒ Object Also known as: id
Returns the value of attribute item_no.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def item_no @item_no end |
#price ⇒ Object
Returns the value of attribute price.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def price @price end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def title @title end |
#unit ⇒ Object
Returns the value of attribute unit.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def unit @unit end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def updated_at @updated_at end |
#vat ⇒ Object
Returns the value of attribute vat.
7 8 9 |
# File 'lib/billogram/resources/item.rb', line 7 def vat @vat end |
Instance Method Details
#delete ⇒ Object
15 16 17 |
# File 'lib/billogram/resources/item.rb', line 15 def delete self.class.perform_request(:delete, "#{endpoint}/#{id}") end |