Class: Notesgrip::NotesViewEntryCollection

Inherits:
GripWrapper
  • Object
show all
Defined in:
lib/notesgrip/NotesView.rb

Overview

NotesViewEntryCollection Class ================

Instance Method Summary collapse

Methods inherited from GripWrapper

#initialize, #raw

Constructor Details

This class inherits a constructor from Notesgrip::GripWrapper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Notesgrip::GripWrapper

Instance Method Details

#countObject Also known as: size



445
446
447
# File 'lib/notesgrip/NotesView.rb', line 445

def count
  @raw_object.Count
end

#each_viewEntryObject Also known as: each



435
436
437
438
439
440
441
442
# File 'lib/notesgrip/NotesView.rb', line 435

def each_viewEntry
  raw_entry = @raw_object.GetFirstEntry
  while raw_entry
    next_entry = @raw_object.GetNextEntry(raw_entry)
    yield NotesViewEntry.new(raw_entry)
    raw_entry = next_entry
  end
end

#inspectObject



450
451
452
# File 'lib/notesgrip/NotesView.rb', line 450

def inspect
  "<#{self.class}, Count:#{self.Count}>"
end