class Pexels::CollectionSet
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/pexels/collection_set.rb, line 6 def initialize(response) super @data = attrs.fetch('collections', []).map { |attrs| Pexels::Collection.new(attrs) } end