Class: Resync::ChangeList

Inherits:
Object
  • Object
show all
Includes:
Resync::Client::Mixins::PlainList
Defined in:
lib/resync/client/mixins/plain_list.rb,
lib/resync/client/mixins/change_index.rb

Instance Method Summary collapse

Methods included from Resync::Client::Mixins::PlainList

#all_resources

Instance Method Details

#all_changes(of_type: nil, in_range: nil) ⇒ Enumerator::Lazy<Resource>

Delegates to ChangeList#changes for interoperation with #all_changes.

Parameters:

  • of_type (Types::Change) (defaults to: nil)

    the change type

  • in_range (Range<Time>) (defaults to: nil)

    the range of modification times

Returns:

  • (Enumerator::Lazy<Resource>)

    a lazy enumeration of the matching changes, or all changes if neither of_type nor in_range is specified.



44
45
46
# File 'lib/resync/client/mixins/change_index.rb', line 44

def all_changes(of_type: nil, in_range: nil)
  changes(of_type: of_type, in_range: in_range).lazy
end