Class: App42::Gallery::Photo

Inherits:
Object
  • Object
show all
Defined in:
lib/gallery/Album.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(album) ⇒ Photo

This is a constructor that takes no parameter



39
40
41
# File 'lib/gallery/Album.rb', line 39

def initialize(album)
  album.photoList.push(self)
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def description
  @description
end

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def name
  @name
end

#tagListObject

Returns the value of attribute tagList.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def tagList
  @tagList
end

#thumbNailTinyUrlObject

Returns the value of attribute thumbNailTinyUrl.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def thumbNailTinyUrl
  @thumbNailTinyUrl
end

#thumbNailUrlObject

Returns the value of attribute thumbNailUrl.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def thumbNailUrl
  @thumbNailUrl
end

#tinyUrlObject

Returns the value of attribute tinyUrl.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def tinyUrl
  @tinyUrl
end

#urlObject

Returns the value of attribute url.



25
26
27
# File 'lib/gallery/Album.rb', line 25

def url
  @url
end

Instance Method Details

#to_sObject

Returns the Album Response in JSON format.

Returns:

  • the response in JSON format.



50
51
52
# 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