Class: Quickbooks::Collection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/quickbooks/util/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



6
7
8
# File 'lib/quickbooks/util/collection.rb', line 6

def body
  @body
end

#countObject

Legacy Attributes (v2)



9
10
11
# File 'lib/quickbooks/util/collection.rb', line 9

def count
  @count
end

#current_pageObject

Legacy Attributes (v2)



9
10
11
# File 'lib/quickbooks/util/collection.rb', line 9

def current_page
  @current_page
end

#entriesObject

Returns the value of attribute entries.



4
5
6
# File 'lib/quickbooks/util/collection.rb', line 4

def entries
  @entries
end

#max_resultsObject

v3 Attributes



12
13
14
# File 'lib/quickbooks/util/collection.rb', line 12

def max_results
  @max_results
end

#start_positionObject

v3 Attributes



12
13
14
# File 'lib/quickbooks/util/collection.rb', line 12

def start_position
  @start_position
end

#total_countObject

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