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



247
248
249
# File 'lib/notesgrip/NotesView.rb', line 247

def count
  @raw_object.Count
end

#each_viewEntryObject Also known as: each



237
238
239
240
241
242
243
244
# File 'lib/notesgrip/NotesView.rb', line 237

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



252
253
254
# File 'lib/notesgrip/NotesView.rb', line 252

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