class App42::Gallery::Photo

Attributes

description[RW]
name[RW]
tagList[RW]
thumbNailTinyUrl[RW]
thumbNailUrl[RW]
tinyUrl[RW]
url[RW]

Public Class Methods

new(album) click to toggle source

This is a constructor that takes no parameter

# File lib/gallery/Album.rb, line 39
def initialize(album)
  album.photoList.push(self)
end

Public Instance Methods

to_s() click to toggle source

Returns the Album Response in JSON format.

@return the response in JSON format.

# File lib/gallery/Album.rb, line 50
def to_s
  return "name : #{@name}" + "description : #{@description}" + "url : #{@url}"  + "tinyUrl : #{@tinyUrl}" + "thumbNailUrl : #{@thumbNailUrl}" + "thumbNailTinyUrl : #{@thumbNailTinyUrl}" + "tagList : #{@tagList }"
end