Class: Flickr::Photoset
Overview
Todo: flickr.photosets.delete flickr.photosets.editMeta flickr.photosets.editPhotos flickr.photosets.getContext flickr.photosets.getInfo flickr.photosets.getPhotos
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#photos ⇒ Object
readonly
Returns the value of attribute photos.
-
#primary ⇒ Object
readonly
Returns the value of attribute primary.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#getInfo ⇒ Object
Implements flickr.photosets.getInfo private, once we can call it as needed.
-
#initialize(id = nil, api_key = nil) ⇒ Photoset
constructor
A new instance of Photoset.
Constructor Details
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def client @client end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def id @id end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def owner @owner end |
#photos ⇒ Object (readonly)
Returns the value of attribute photos.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def photos @photos end |
#primary ⇒ Object (readonly)
Returns the value of attribute primary.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def primary @primary end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
690 691 692 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 690 def url @url end |
Instance Method Details
#getInfo ⇒ Object
Implements flickr.photosets.getInfo private, once we can call it as needed
700 701 702 703 704 705 706 707 708 709 |
# File 'lib/acts_as_unvlogable/flickr.rb', line 700 def getInfo info = @client.photosets_getInfo('photoset_id'=>@id)['photoset'] @owner = User.new(info['owner'], nil, nil, nil, @api_key) @primary = info['primary'] @photos = info['photos'] @title = info['title'] @description = info['description'] @url = "http://www.flickr.com/photos/#{@owner.getInfo.username}/sets/#{@id}/" self end |