class AdoptAPet::Pet::Photo

Class for Adopt-A-Pet Pet Photos @author Stephen Dolan

@!attribute height

@return [Integer] the height of the Photo

@!attribute width

@return [Integer] the width of the Photo

@!attribute url

@return [String] a URL where you can view the Photo

Attributes

height[RW]
url[RW]
width[RW]

Public Class Methods

new(height, width, url) click to toggle source

Create a single instance of a Pet Photo @author Stephen Dolan

@param [Integer] height the height of the photo @param [Integer] width the width of the Photo @param [String] url a URL where you can view the photo

@return [Pet::Photo] a new Pet Photo

@example Create a new Photo

my_photo = Pet::Photo.new(100, 100, 'images.com/my_image')
height = my_photo.height
# File lib/adopt_a_pet/pet.rb, line 265
def initialize(height, width, url)
  self.height  = height
  self.width   = width
  self.url     = url
end