Module: FREDAPI::Client::RelatedTags

Defined in:
lib/fredapi/client/related_tags.rb

Overview

RelatedTags module for fred/related_tags endpoint

Instance Method Summary collapse

Instance Method Details

Get the related tags for one or more tags

Parameters:

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • api_key (Integer)

    32 character alpha-numeric lowercase string

  • file_type (String)

    A key or file extension that indicates the type of file to send

  • realtime_start (String)

    The start of the real-time period

  • realtime_end (String)

    The end of the real-time period

  • tag_group_id (String)

    A tag group id to filter tags by type

  • tag_names (String)

    A semicolon delimited list of tags to find related tags for

  • search_text (String)

    The words to find matching tags with

  • limit (Integer)

    The maximum number of results to return

  • offset (Integer)

    Non-negative integer

  • order_by (String)

    Order results by values of the specified attribute

  • sort_order (String)

    Sort results is ascending or descending order for attribute values specified by order_by

Returns:

  • (Hashie::Mash)

    Hash containing the results



21
22
23
# File 'lib/fredapi/client/related_tags.rb', line 21

def related_tags opts={}
  get "fred/related_tags", opts
end