Share

WSRowObjectCollection

A collection of WSRowObjects.

Methods:

[] (Get Index)

#[(index)] ⇒ WSRowObject?

EXCHANGE, UI

Returns the WSRowObject from the collection at the specified index.

Parameters

Name Type(s) Description
index Integer The index requested (zero-based).
Return WSRowObject, nil The object found, or nil if there is no object at this index.

each

#each { |ro| ... } ⇒ WSRowObject

EXCHANGE, UI

Iterates through the collection, yielding a WSRowObject.

Examples

network.row_object_collection('_nodes').each { |ro| puts ro.id }
network.row_object_collection('_nodes').each do |ro|
  puts ro.id
end

length

#length ⇒ Integer

EXCHANGE, UI

Returns the length of this collection, i.e. how many WSRowObjects it contains.

Was this information helpful?