class Eol::Collections
Contains metadata about the collection and the items it contains
Attributes
collection_items[RW]
@return [Array] an Array of Hashes
created[RW]
@return [String] created timestamp
description[RW]
@return [String] collections description
item_types[RW]
@return [Array] an Array of Hashes
logo_url[RW]
@return [String] a hyperlink to the logo
modified[RW]
@return [String] modified timestamp
name[RW]
@return [String] collections name
total_items[RW]
@return [Integer] total collections items
Public Class Methods
new(response)
click to toggle source
# File lib/eol/collections.rb, line 24 def initialize(response) self.name = response['name'] self.description = response['description'] self.logo_url = response['logo_url'] self.created = response['created'] self.modified = response['modified'] self.total_items = response['total_items'] self.item_types = response['item_types'] self.collection_items = response['collection_items'] end
Public Instance Methods
each() { |name| ... }
click to toggle source
# File lib/eol/collections.rb, line 35 def each yield @name yield @description yield @logo_url yield @created yield @modified yield @total_items yield @item_types yield @collection_items end