Module: Delicious::Tags::Methods::All
Instance Method Summary collapse
-
#all ⇒ Array<Tag>
Get all tags.
Instance Method Details
#all ⇒ Array<Tag>
Get all tags
13 14 15 16 17 18 19 |
# File 'lib/delicious/tags/methods/all.rb', line 13 def all response = @client.connection.get '/v1/tags/get' fail Delicious::Error, 'Error getting tags' unless response.body['tags'] response.body['tags']['tag'].map do |attrs| Tag.build_persisted @client, name: attrs['tag'], count: attrs['count'].to_i end end |