Class: Shutterstock::Categories

Inherits:
Array
  • Object
show all
Defined in:
lib/client/categories.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_data) ⇒ Categories

Returns a new instance of Categories.



4
5
6
7
8
# File 'lib/client/categories.rb', line 4

def initialize(raw_data)
	@raw_data = raw_data
		super( @raw_data.map{ |cat| Category.new(cat) } )
	self
end

Instance Attribute Details

#raw_dataObject (readonly)

Returns the value of attribute raw_data.



3
4
5
# File 'lib/client/categories.rb', line 3

def raw_data
  @raw_data
end