Module: Instagram::Client::Tags
- Included in:
- Instagram::Client
- Defined in:
- lib/instagram/client/tags.rb
Overview
Defines methods related to tags
Instance Method Summary collapse
-
#tag(tag) ⇒ Hashie::Mash
Returns extended information of a given Instagram tag.
-
#tag_recent_media(tag, options = {}) ⇒ Hashie::Mash
Returns a list of recent media items for a given Instagram tag.
-
#tag_search(query, options = {}) ⇒ Hashie::Mash
Returns a list of tags starting with the given search query.
Instance Method Details
#tag(tag) ⇒ Hashie::Mash
Returns extended information of a given Instagram tag
16 17 18 19 |
# File 'lib/instagram/client/tags.rb', line 16 def tag(tag, *args) response = get("tags/#{tag}") response end |
#tag_recent_media(tag, options = {}) ⇒ Hashie::Mash
Returns a list of recent media items for a given Instagram tag
35 36 37 38 39 |
# File 'lib/instagram/client/tags.rb', line 35 def tag_recent_media(id, *args) = args.last.is_a?(Hash) ? args.pop : {} response = get("tags/#{id}/media/recent", , false, false) response end |
#tag_search(query, options = {}) ⇒ Hashie::Mash
Returns a list of tags starting with the given search query
53 54 55 56 |
# File 'lib/instagram/client/tags.rb', line 53 def tag_search(query, ={}) response = get('tags/search', .merge(:q => query)) response end |