Class: Myflickr::Tag

Inherits:
Struct
  • Object
show all
Defined in:
lib/myflickr/tag.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'lib/myflickr/tag.rb', line 2

def value
  @value
end

Class Method Details

.listObject

List all tags



4
5
6
7
8
# File 'lib/myflickr/tag.rb', line 4

def self.list
 (Query.api_call('flickr.tags.getListUser')/:tag).parallel_map(MAX_THREADS) do |tag| 
   Tag.new(tag.to_s)
 end
end