Class: App42::Gallery::Photo
- Inherits:
-
Object
- Object
- App42::Gallery::Photo
- Defined in:
- lib/gallery/Album.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tagList ⇒ Object
Returns the value of attribute tagList.
-
#thumbNailTinyUrl ⇒ Object
Returns the value of attribute thumbNailTinyUrl.
-
#thumbNailUrl ⇒ Object
Returns the value of attribute thumbNailUrl.
-
#tinyUrl ⇒ Object
Returns the value of attribute tinyUrl.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(album) ⇒ Photo
constructor
This is a constructor that takes no parameter.
-
#to_s ⇒ Object
Returns the Album Response in JSON format.
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
#description ⇒ Object
Returns the value of attribute description.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def name @name end |
#tagList ⇒ Object
Returns the value of attribute tagList.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def tagList @tagList end |
#thumbNailTinyUrl ⇒ Object
Returns the value of attribute thumbNailTinyUrl.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def thumbNailTinyUrl @thumbNailTinyUrl end |
#thumbNailUrl ⇒ Object
Returns the value of attribute thumbNailUrl.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def thumbNailUrl @thumbNailUrl end |
#tinyUrl ⇒ Object
Returns the value of attribute tinyUrl.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def tinyUrl @tinyUrl end |
#url ⇒ Object
Returns the value of attribute url.
25 26 27 |
# File 'lib/gallery/Album.rb', line 25 def url @url end |
Instance Method Details
#to_s ⇒ Object
Returns the Album 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 |