module Collins::Api::Tag
@api collins
Public Instance Methods
get_tag_values(tag, strict = false)
click to toggle source
Get all values associated with the specified tag
@note You will get a 404 if the tag does not exist. Depending on strict mode, this will result in an empty array or an exception @param [String] tag The tag you would like values for @param [Boolean] strict Here for backwards API compatibility @raise [UnexpectedResponseError] if strict is true and the response is not a 200 @return [Array<String>] values associated with this tag
# File lib/collins/api/tag.rb, line 35 def get_tag_values tag, strict = false http_get("/api/tag/#{tag}") do |response| parse_response response, :expects => 200, :default => [], :raise => strict?(strict) do |json| json["data"]["values"] end end end