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.



697
698
699
700
701
# File 'lib/flickr.rb', line 697

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.



695
696
697
# File 'lib/flickr.rb', line 695

def client
  @client
end

#descriptionObject (readonly)

Returns the value of attribute description.



695
696
697
# File 'lib/flickr.rb', line 695

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



695
696
697
# File 'lib/flickr.rb', line 695

def id
  @id
end

#ownerObject (readonly)

Returns the value of attribute owner.



695
696
697
# File 'lib/flickr.rb', line 695

def owner
  @owner
end

#photosObject (readonly)

Returns the value of attribute photos.



695
696
697
# File 'lib/flickr.rb', line 695

def photos
  @photos
end

#primaryObject (readonly)

Returns the value of attribute primary.



695
696
697
# File 'lib/flickr.rb', line 695

def primary
  @primary
end

#titleObject (readonly)

Returns the value of attribute title.



695
696
697
# File 'lib/flickr.rb', line 695

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



695
696
697
# File 'lib/flickr.rb', line 695

def url
  @url
end

Instance Method Details

#first_photoObject



723
724
725
# File 'lib/flickr.rb', line 723

def first_photo
@first_photo ||= getFirstPhoto
end