Class: Mousetrap::Invoice

Inherits:
Resource show all
Defined in:
lib/mousetrap/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject

Returns the value of attribute billing_date.



3
4
5
# File 'lib/mousetrap/invoice.rb', line 3

def billing_date
  @billing_date
end

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/mousetrap/invoice.rb', line 3

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/mousetrap/invoice.rb', line 3

def id
  @id
end

#numberObject

Returns the value of attribute number.



3
4
5
# File 'lib/mousetrap/invoice.rb', line 3

def number
  @number
end