Class: OpenSocial::Collection
- Inherits:
-
Hash
- Object
- Hash
- OpenSocial::Collection
- Defined in:
- lib/opensocial/base.rb
Overview
Wraps the functionality of an OpenSocial collection as defined by the specification. In practical uses, a Collection serves as a Hash (usually index by ID) with the added benefit of being convertable to an Array, when it’s necessary to iterate over all of the values.
Instance Method Summary collapse
-
#to_array ⇒ Object
Converts the Collection to an Array by returning each of the values from key/value pairs.
Instance Method Details
#to_array ⇒ Object
Converts the Collection to an Array by returning each of the values from key/value pairs.
38 39 40 |
# File 'lib/opensocial/base.rb', line 38 def to_array values end |