Sha256: 21dd4e207455aa195d634b4f27dbf03a30ced2e54579a5603ca51d1a7c778040
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module Shutterstock class Collections < Array attr_reader :raw_data def initialize(raw_data) @raw_data = raw_data if raw_data.kind_of? Hash super(@raw_data["data"].map{ |collection| Collection.new(collection) }) elsif raw_data.kind_of? Array super( @raw_data.map{ |collection| Collection.new(collection) } ) end self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shutterstock-v2-0.0.1 | lib/client/collections.rb |