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
#access_token, #attributes
Instance Method Summary
collapse
#==, #[], attribute, #initialize, #inspect, #matches?, #update
Methods included from Attributes
#attribute, #attributes
#autoload_dir, #autoload_names
Constructor Details
This class inherits a constructor from Flickr::Object
Instance Attribute Details
18
|
# File 'lib/flickr/object/set.rb', line 18
attribute :comments_count, Integer
|
#created_at ⇒ Time
22
|
# File 'lib/flickr/object/set.rb', line 22
attribute :created_at, Time
|
#description ⇒ String
12
|
# File 'lib/flickr/object/set.rb', line 12
attribute :description, String
|
#farm ⇒ Integer
9
|
# File 'lib/flickr/object/set.rb', line 9
attribute :farm, Integer
|
#id ⇒ String
6
|
# File 'lib/flickr/object/set.rb', line 6
attribute :id, String
|
14
|
# File 'lib/flickr/object/set.rb', line 14
attribute :owner, Person
|
20
|
# File 'lib/flickr/object/set.rb', line 20
attribute :permissions, Permissions
|
#photos_count ⇒ Integer
16
|
# File 'lib/flickr/object/set.rb', line 16
attribute :photos_count, Integer
|
#primary_photo ⇒ Photo
25
|
# File 'lib/flickr/object/set.rb', line 25
attribute :primary_photo, Photo
|
#secret ⇒ String
7
|
# File 'lib/flickr/object/set.rb', line 7
attribute :secret, String
|
#server ⇒ String
8
|
# File 'lib/flickr/object/set.rb', line 8
attribute :server, String
|
#title ⇒ String
11
|
# File 'lib/flickr/object/set.rb', line 11
attribute :title, String
|
#updated_at ⇒ Time
23
|
# File 'lib/flickr/object/set.rb', line 23
attribute :updated_at, Time
|
#url ⇒ String
10
|
# File 'lib/flickr/object/set.rb', line 10
attribute :url, String
|
#views_count ⇒ Integer
17
|
# File 'lib/flickr/object/set.rb', line 17
attribute :views_count, Integer
|
Instance Method Details
#add_photo(photo_or_id, params = {}) ⇒ response
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
31
32
33
|
# File 'lib/flickr/object/set.rb', line 31
def delete(params = {})
api.delete(id, params)
end
|
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
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
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
|
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
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
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
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=
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
|