Method: HalClient::Collection#each

Defined in:
lib/hal_client/collection.rb

#each(&blk) ⇒ Object

Iterates over the members of the collection fetching the next page as necessary.

Yields the next item of the iteration.



49
50
51
52
53
# File 'lib/hal_client/collection.rb', line 49

def each(&blk)
  each_page do |a_page|
    a_page.related("item").each(&blk)
  end
end