Class: Flickr::Photoset

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

Overview

Todo: flickr.photosets.delete flickr.photosets.editMeta flickr.photosets.editPhotos flickr.photosets.getContext flickr.photosets.getInfo flickr.photosets.getPhotos

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, api_key = nil) ⇒ Photoset

Returns a new instance of Photoset.



687
688
689
690
691
# File 'lib/flickr.rb', line 687

def initialize(id=nil, api_key=nil)
  @id = id
  @api_key = api_key
  @client = Flickr.new @api_key
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



685
686
687
# File 'lib/flickr.rb', line 685

def client
  @client
end

#descriptionObject (readonly)

Returns the value of attribute description.



685
686
687
# File 'lib/flickr.rb', line 685

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



685
686
687
# File 'lib/flickr.rb', line 685

def id
  @id
end

#ownerObject (readonly)

Returns the value of attribute owner.



685
686
687
# File 'lib/flickr.rb', line 685

def owner
  @owner
end

#photosObject (readonly)

Returns the value of attribute photos.



685
686
687
# File 'lib/flickr.rb', line 685

def photos
  @photos
end

#primaryObject (readonly)

Returns the value of attribute primary.



685
686
687
# File 'lib/flickr.rb', line 685

def primary
  @primary
end

#titleObject (readonly)

Returns the value of attribute title.



685
686
687
# File 'lib/flickr.rb', line 685

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



685
686
687
# File 'lib/flickr.rb', line 685

def url
  @url
end

Instance Method Details

#first_photoObject



713
714
715
# File 'lib/flickr.rb', line 713

def first_photo
@first_photo ||= getFirstPhoto
end