Class: FlickrPhoto
- Inherits:
-
Object
- Object
- FlickrPhoto
- Defined in:
- lib/flickr_vision/flickr_photo.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#farm_id ⇒ Object
Returns the value of attribute farm_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#server_id ⇒ Object
Returns the value of attribute server_id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #large ⇒ Object
- #large_square ⇒ Object
-
#medium ⇒ Object
640 px.
- #original ⇒ Object
-
#small ⇒ Object
240 px.
- #small_square ⇒ Object
- #thumbnail ⇒ Object
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def description @description end |
#farm_id ⇒ Object
Returns the value of attribute farm_id.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def farm_id @farm_id end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def id @id end |
#primary ⇒ Object
Returns the value of attribute primary.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def primary @primary end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def secret @secret end |
#server_id ⇒ Object
Returns the value of attribute server_id.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def server_id @server_id end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/flickr_vision/flickr_photo.rb', line 3 def title @title end |
Instance Method Details
#large ⇒ Object
27 28 29 |
# File 'lib/flickr_vision/flickr_photo.rb', line 27 def large() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_b" + ".jpg" end |
#large_square ⇒ Object
9 10 11 |
# File 'lib/flickr_vision/flickr_photo.rb', line 9 def large_square() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_q" + ".jpg" end |
#medium ⇒ Object
640 px
23 24 25 |
# File 'lib/flickr_vision/flickr_photo.rb', line 23 def medium() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_z" + ".jpg" end |
#original ⇒ Object
32 33 34 |
# File 'lib/flickr_vision/flickr_photo.rb', line 32 def original() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_o" + ".jpg" end |
#small ⇒ Object
240 px
18 19 20 |
# File 'lib/flickr_vision/flickr_photo.rb', line 18 def small() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_m" + ".jpg" end |
#small_square ⇒ Object
5 6 7 |
# File 'lib/flickr_vision/flickr_photo.rb', line 5 def small_square() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_s" + ".jpg" end |
#thumbnail ⇒ Object
13 14 15 |
# File 'lib/flickr_vision/flickr_photo.rb', line 13 def thumbnail() return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_t" + ".jpg" end |