Class: Flickr::Base
- Inherits:
-
Object
- Object
- Flickr::Base
- Defined in:
- lib/flickr-wrapper/base.rb
Direct Known Subclasses
MachineTag, Photo, PhotoSet, Tag, User
Instance Attribute Summary collapse
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(user_id) ⇒ Base
constructor
A new instance of Base.
-
#machine_tags ⇒ Object
List all machine tags.
-
#photos ⇒ Object
This is a cheat, we’re just going to search with no params.
-
#sets ⇒ Object
List all photo sets.
-
#tags ⇒ Object
List all tags.
Constructor Details
#initialize(user_id) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/flickr-wrapper/base.rb', line 4 def initialize(user_id) @user_id = user_id end |
Instance Attribute Details
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
2 3 4 |
# File 'lib/flickr-wrapper/base.rb', line 2 def user_id @user_id end |
Instance Method Details
#machine_tags ⇒ Object
List all machine tags
27 28 29 |
# File 'lib/flickr-wrapper/base.rb', line 27 def Flickr::MachineTag.list(self.user_id) end |
#photos ⇒ Object
This is a cheat, we’re just going to search with no params. Maximum amount of photos flickr will let me return is 500
17 18 19 |
# File 'lib/flickr-wrapper/base.rb', line 17 def photos Flickr::Photo.list(self.user_id) end |