Class: Quickbooks::Collection
- Inherits:
-
Object
- Object
- Quickbooks::Collection
- Includes:
- Enumerable
- Defined in:
- lib/quickbooks/util/collection.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Legacy Attributes (v2).
-
#current_page ⇒ Object
Legacy Attributes (v2).
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#max_results ⇒ Object
v3 Attributes.
-
#start_position ⇒ Object
v3 Attributes.
-
#total_count ⇒ Object
v3 Attributes.
Instance Method Summary collapse
Instance Attribute Details
#count ⇒ Object
Legacy Attributes (v2)
7 8 9 |
# File 'lib/quickbooks/util/collection.rb', line 7 def count @count end |
#current_page ⇒ Object
Legacy Attributes (v2)
7 8 9 |
# File 'lib/quickbooks/util/collection.rb', line 7 def current_page @current_page end |
#entries ⇒ Object
Returns the value of attribute entries.
4 5 6 |
# File 'lib/quickbooks/util/collection.rb', line 4 def entries @entries end |
#max_results ⇒ Object
v3 Attributes
10 11 12 |
# File 'lib/quickbooks/util/collection.rb', line 10 def max_results @max_results end |
#start_position ⇒ Object
v3 Attributes
10 11 12 |
# File 'lib/quickbooks/util/collection.rb', line 10 def start_position @start_position end |
#total_count ⇒ Object
v3 Attributes
10 11 12 |
# File 'lib/quickbooks/util/collection.rb', line 10 def total_count @total_count end |
Instance Method Details
#each(*args, &block) ⇒ Object
12 13 14 |
# File 'lib/quickbooks/util/collection.rb', line 12 def each(*args, &block) (entries|| []).each *args, &block end |