Class: Flickrie::Set
- Inherits:
-
Object
- Object
- Flickrie::Set
- Defined in:
- lib/flickrie/objects/set.rb
Instance Attribute Summary collapse
- #can_comment? ⇒ Boolean readonly
- #comments_count ⇒ Fixnum readonly
- #created_at ⇒ Time readonly
- #description ⇒ String readonly
- #farm ⇒ Fixnum readonly
- #hash ⇒ Hash readonly
- #id ⇒ String readonly
- #media_count ⇒ Fixnum readonly
- #needs_interstitial? ⇒ Boolean readonly
- #owner ⇒ Flickrie::User readonly
- #photos_count ⇒ Fixnum readonly
- #primary_media_id ⇒ String (also: #primary_photo_id, #primary_video_id) readonly
- #secret ⇒ String readonly
- #server ⇒ String readonly
- #title ⇒ String readonly
- #updated_at ⇒ Time readonly
- #url ⇒ String readonly
- #videos_count ⇒ Fixnum readonly
- #views_count ⇒ Fixnum readonly
- #visibility_can_see_set? ⇒ Boolean readonly
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#get_info(params = {}) ⇒ self
Same as calling
Flickrie.get_set_info(set.id)
. -
#media(params = {}) ⇒ Flickrie::Collection<Flickrie::Photo, Flickrie::Video>
Same as calling
Flickrie.media_from_set(set.id)
. -
#photos(params = {}) ⇒ Flickrie::Collection<Flickrie::Photo>
Same as calling
Flickrie.photos_from_set(set.id)
. -
#videos(params = {}) ⇒ Flickrie::Collection<Flickrie::Video>
Same as calling
Flickrie.videos_from_set(set.id)
.
Instance Attribute Details
#can_comment? ⇒ Boolean (readonly)
64 65 66 |
# File 'lib/flickrie/objects/set.rb', line 64
def can_comment?
@can_comment?
end
|
#comments_count ⇒ Fixnum (readonly)
31 32 33 |
# File 'lib/flickrie/objects/set.rb', line 31 def comments_count @comments_count end |
#created_at ⇒ Time (readonly)
72 73 74 |
# File 'lib/flickrie/objects/set.rb', line 72 def created_at @created_at end |
#description ⇒ String (readonly)
21 22 23 |
# File 'lib/flickrie/objects/set.rb', line 21 def description @description end |
#farm ⇒ Fixnum (readonly)
17 18 19 |
# File 'lib/flickrie/objects/set.rb', line 17 def farm @farm end |
#id ⇒ String (readonly)
11 12 13 |
# File 'lib/flickrie/objects/set.rb', line 11 def id @id end |
#media_count ⇒ Fixnum (readonly)
37 38 39 |
# File 'lib/flickrie/objects/set.rb', line 37 def media_count @media_count end |
#needs_interstitial? ⇒ Boolean (readonly)
67 68 69 |
# File 'lib/flickrie/objects/set.rb', line 67
def needs_interstitial?
@needs_interstitial?
end
|
#owner ⇒ Flickrie::User (readonly)
42 43 44 |
# File 'lib/flickrie/objects/set.rb', line 42 def owner @owner end |
#photos_count ⇒ Fixnum (readonly)
33 34 35 |
# File 'lib/flickrie/objects/set.rb', line 33 def photos_count @photos_count end |
#primary_media_id ⇒ String (readonly) Also known as: primary_photo_id, primary_video_id
24 25 26 |
# File 'lib/flickrie/objects/set.rb', line 24 def primary_media_id @primary_media_id end |
#secret ⇒ String (readonly)
13 14 15 |
# File 'lib/flickrie/objects/set.rb', line 13 def secret @secret end |
#server ⇒ String (readonly)
15 16 17 |
# File 'lib/flickrie/objects/set.rb', line 15 def server @server end |
#title ⇒ String (readonly)
19 20 21 |
# File 'lib/flickrie/objects/set.rb', line 19 def title @title end |
#updated_at ⇒ Time (readonly)
74 75 76 |
# File 'lib/flickrie/objects/set.rb', line 74 def updated_at @updated_at end |
#url ⇒ String (readonly)
77 78 79 |
# File 'lib/flickrie/objects/set.rb', line 77 def url @url end |
#videos_count ⇒ Fixnum (readonly)
35 36 37 |
# File 'lib/flickrie/objects/set.rb', line 35 def videos_count @videos_count end |
#views_count ⇒ Fixnum (readonly)
29 30 31 |
# File 'lib/flickrie/objects/set.rb', line 29 def views_count @views_count end |
#visibility_can_see_set? ⇒ Boolean (readonly)
69 70 71 |
# File 'lib/flickrie/objects/set.rb', line 69
def visibility_can_see_set?
@visibility_can_see_set?
end
|
Instance Method Details
#[](key) ⇒ Object
85 |
# File 'lib/flickrie/objects/set.rb', line 85 def [](key) @hash[key] end |
#get_info(params = {}) ⇒ self
Same as calling Flickrie.get_set_info(set.id)
92 93 94 95 |
# File 'lib/flickrie/objects/set.rb', line 92 def get_info(params = {}) @hash.deep_merge!(@api_caller.get_set_info(id, params).hash) self end |
#media(params = {}) ⇒ Flickrie::Collection<Flickrie::Photo, Flickrie::Video>
Same as calling Flickrie.media_from_set(set.id)
.
59 60 61 |
# File 'lib/flickrie/objects/set.rb', line 59 def media(params = {}) @api_caller.media_from_set(id, params) end |
#photos(params = {}) ⇒ Flickrie::Collection<Flickrie::Photo>
Same as calling Flickrie.photos_from_set(set.id)
.
47 48 49 |
# File 'lib/flickrie/objects/set.rb', line 47 def photos(params = {}) @api_caller.photos_from_set(id, params) end |
#videos(params = {}) ⇒ Flickrie::Collection<Flickrie::Video>
Same as calling Flickrie.videos_from_set(set.id)
.
53 54 55 |
# File 'lib/flickrie/objects/set.rb', line 53 def videos(params = {}) @api_caller.videos_from_set(id, params) end |