Class: Recurly::Invoice

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

Overview

Invoices are created through account objects.

Examples:

 = Account.find 
.invoice!

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #etag, #response, #uri

Class Method Summary collapse

Methods inherited from Resource

#==, all, associations, belongs_to, #changed, #changed?, #changed_attributes, #changes, collection_name, count, create, create!, define_attribute_methods, #destroy, #destroyed?, embedded!, #errors, find, find_each, first, from_response, from_xml, has_many, has_one, #initialize, #inspect, #marshal_dump, #marshal_load, member_name, member_path, #new_record?, paginate, #persist!, #persisted?, #previous_changes, #read_attribute, reflect_on_association, #reload, resource_name, #save, #save!, scope, scopes, #to_param, #to_xml, #update_attributes, #update_attributes!, #valid?, #write_attribute

Constructor Details

This class inherits a constructor from Recurly::Resource

Class Method Details

.accountAccount

Returns:



17
# File 'lib/recurly/invoice.rb', line 17

belongs_to :account

.collectedPager<Invoice>

Returns A pager that yields collected invoices.

Returns:

  • (Pager<Invoice>)

    A pager that yields collected invoices.



12
# File 'lib/recurly/invoice.rb', line 12

scope :collected, :state => :collected

.failedPager<Invoice>

Returns A pager that yields failed invoices.

Returns:



13
# File 'lib/recurly/invoice.rb', line 13

scope :failed,    :state => :failed

.openPager<Invoice>

Returns A pager that yields open invoices.

Returns:



11
# File 'lib/recurly/invoice.rb', line 11

scope :open,      :state => :open

.past_duePager<Invoice>

Returns A pager that yields past_due invoices.

Returns:

  • (Pager<Invoice>)

    A pager that yields past_due invoices.



14
# File 'lib/recurly/invoice.rb', line 14

scope :past_due,  :state => :past_due