class Pexels::Collection
Attributes
description[R]
id[R]
media_count[R]
photos_count[R]
private[R]
title[R]
videos_count[R]
Public Class Methods
new(attrs)
click to toggle source
# File lib/pexels/collection.rb, line 12 def initialize(attrs) @id = attrs.fetch('id') @title = attrs.fetch('title') @description = attrs.fetch('description') @private = attrs.fetch('private') @media_count = attrs.fetch('media_count') @photos_count = attrs.fetch('photos_count') @videos_count = attrs.fetch('videos_count') rescue KeyError => exception raise Pexels::MalformedAPIResponseError.new(exception) end