Class: Flickr::Object::Set

Inherits:
Flickr::Object show all
Defined in:
lib/flickr/object/set.rb,
lib/flickr/object/attribute_locations/set.rb

Instance Attribute Summary collapse

Attributes inherited from Flickr::Object

#access_token, #attributes

Instance Method Summary collapse

Methods inherited from Flickr::Object

#==, #[], attribute, #initialize, #inspect, #matches?, #update

Methods included from Attributes

#attribute, #attributes

Methods included from AutoloadHelper

#autoload_dir, #autoload_names

Constructor Details

This class inherits a constructor from Flickr::Object

Instance Attribute Details

#comments_countInteger (readonly)

Returns:



18
# File 'lib/flickr/object/set.rb', line 18

attribute :comments_count, Integer

#created_atTime (readonly)

Returns:



22
# File 'lib/flickr/object/set.rb', line 22

attribute :created_at,     Time

#descriptionString (readonly)

Returns:



12
# File 'lib/flickr/object/set.rb', line 12

attribute :description,    String

#farmInteger (readonly)

Returns:



9
# File 'lib/flickr/object/set.rb', line 9

attribute :farm,           Integer

#idString (readonly)

Returns:



6
# File 'lib/flickr/object/set.rb', line 6

attribute :id,             String

#ownerPerson (readonly)

Returns:



14
# File 'lib/flickr/object/set.rb', line 14

attribute :owner,          Person

#permissionsPermissions (readonly)

Returns:



20
# File 'lib/flickr/object/set.rb', line 20

attribute :permissions,    Permissions

#photos_countInteger (readonly)

Returns:



16
# File 'lib/flickr/object/set.rb', line 16

attribute :photos_count,   Integer

#primary_photoPhoto (readonly)

Returns:



25
# File 'lib/flickr/object/set.rb', line 25

attribute :primary_photo,  Photo

#secretString (readonly)

Returns:



7
# File 'lib/flickr/object/set.rb', line 7

attribute :secret,         String

#serverString (readonly)

Returns:



8
# File 'lib/flickr/object/set.rb', line 8

attribute :server,         String

#titleString (readonly)

Returns:



11
# File 'lib/flickr/object/set.rb', line 11

attribute :title,          String

#updated_atTime (readonly)

Returns:



23
# File 'lib/flickr/object/set.rb', line 23

attribute :updated_at,     Time

#urlString (readonly)

Returns:



10
# File 'lib/flickr/object/set.rb', line 10

attribute :url,            String

#views_countInteger (readonly)

Returns:



17
# File 'lib/flickr/object/set.rb', line 17

attribute :views_count,    Integer

Instance Method Details

#add_photo(photo_or_id, params = {}) ⇒ response

Returns:

See Also:



65
66
67
# File 'lib/flickr/object/set.rb', line 65

def add_photo(photo_or_id, params = {})
  api.add_photo(id, photo_or_id, params)
end

#delete(params = {}) ⇒ response

Returns:

See Also:



31
32
33
# File 'lib/flickr/object/set.rb', line 31

def delete(params = {})
  api.delete(id, params)
end

#edit_meta(params = {}) ⇒ response

Returns:

See Also:



89
90
91
# File 'lib/flickr/object/set.rb', line 89

def edit_meta(params = {})
  api.edit_meta(id, params)
end

#edit_photos(params = {}) ⇒ response

Returns:

See Also:



39
40
41
# File 'lib/flickr/object/set.rb', line 39

def edit_photos(params = {})
  api.edit_photos(id, params)
end

#get_info!(params = {}) ⇒ self

Returns:

See Also:



47
48
49
50
# File 'lib/flickr/object/set.rb', line 47

def get_info!(params = {})
  set = api.get_info(id, params)
  update(set.attributes)
end

#get_photos(params = {}) ⇒ Flickr::Object::List<Flickr::Object::Photo> Also known as: photos

Returns:

See Also:



56
57
58
# File 'lib/flickr/object/set.rb', line 56

def get_photos(params = {})
  api.get_photos(id, params)
end

#remove_photo(photo_or_id, params = {}) ⇒ response

Returns:

See Also:



81
82
83
# File 'lib/flickr/object/set.rb', line 81

def remove_photo(photo_or_id, params = {})
  api.remove_photo(id, photo_or_id, params)
end

#remove_photos(photo_ids, params = {}) ⇒ response

Returns:

See Also:



73
74
75
# File 'lib/flickr/object/set.rb', line 73

def remove_photos(photo_ids, params = {})
  api.remove_photos(id, photo_ids, params)
end

#reorder_photos(photo_ids, params = {}) ⇒ response

Returns:

See Also:



97
98
99
# File 'lib/flickr/object/set.rb', line 97

def reorder_photos(photo_ids, params = {})
  api.reorder_photos(id, photo_ids, params)
end

#set_primary_photo(photo_or_id, params = {}) ⇒ response Also known as: primary_photo=

Returns:

See Also:



105
106
107
# File 'lib/flickr/object/set.rb', line 105

def set_primary_photo(photo_or_id, params = {})
  api.set_primary_photo(id, photo_or_id, params)
end