class PetfinderV2::Serializers::Photos

Attributes

full[R]
large[R]
medium[R]
small[R]

Public Class Methods

new(data) click to toggle source
# File lib/petfinder_V2/serializers/photos.rb, line 9
def initialize(data)
  @small = data['small']
  @medium = data['medium']
  @large = data['large']
  @full = data['full']
end
process_collection(collection) click to toggle source
# File lib/petfinder_V2/serializers/photos.rb, line 4
def self.process_collection(collection)
  collection.inject([]) { |mem, photos_hash| mem << new(photos_hash) }
end