Module: BookingSync::Pagination::ClassMethods
- Defined in:
- lib/bookingsync/pagination.rb
Instance Method Summary collapse
- #find_all_across_pages(options = {}) ⇒ Object
-
#find_all_across_pages_from(time) ⇒ Object
This only is usefull for bookings, but should be safely ignored by other classes.
Instance Method Details
#find_all_across_pages(options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/bookingsync/pagination.rb', line 8 def find_all_across_pages( = {}) records = [] each() { |record| records << record } records end |
#find_all_across_pages_from(time) ⇒ Object
This only is usefull for bookings, but should be safely ignored by other classes
15 16 17 |
# File 'lib/bookingsync/pagination.rb', line 15 def find_all_across_pages_from(time) find_all_across_pages(:params => { :from => time.utc.strftime("%Y%m%d") }) end |