Module: Tumblr::Client::Tagged

Included in:
Tumblr::Client
Defined in:
lib/tumblr/tagged.rb

Constant Summary collapse

@@standard_options =
[:before, :limit, :filter]

Instance Method Summary collapse

Instance Method Details

#tagged(tag, options = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/tumblr/tagged.rb', line 7

def tagged(tag, options={})
  params = {:tag => tag, :api_key => Tumblr::consumer_key}
  unless options.empty?
    params.merge!(options)
  end
  if valid_options(@@standard_options, options)
      get("v2/tagged", params)
  end
end