Class: Mousetrap::Invoice
Instance Attribute Summary collapse
-
#billing_date ⇒ Object
Returns the value of attribute billing_date.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Invoice
constructor
A new instance of Invoice.
Methods inherited from Resource
[], #destroy, destroy_all, exists?, #exists?, #new?, new_from_api
Constructor Details
#initialize(hash = {}) ⇒ Invoice
Returns a new instance of Invoice.
9 10 11 |
# File 'lib/mousetrap/invoice.rb', line 9 def initialize(hash = {}) super(self.class.attributes_from_api(hash)) end |
Instance Attribute Details
#billing_date ⇒ Object
Returns the value of attribute billing_date.
3 4 5 |
# File 'lib/mousetrap/invoice.rb', line 3 def billing_date @billing_date end |
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/mousetrap/invoice.rb', line 3 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/mousetrap/invoice.rb', line 3 def id @id end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/mousetrap/invoice.rb', line 3 def number @number end |