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