Method: Vng::Relation#initialize

Defined in:
lib/vng/relation.rb

#initialize(options = {}) {|Hash| ... } ⇒ Relation

Returns a new instance of Relation.

Yields:

  • (Hash)

    the options to change which items to iterate through.



8
9
10
11
12
# File 'lib/vng/relation.rb', line 8

def initialize(options = {}, &item_block)
  @options = {parts: ['objectID', 'isActive'], next_page: 1}
  @options.merge! options
  @item_block = item_block
end