Module: FREDAPI::Client::Sources

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

Overview

Sources module for fred/sources endpoint

Instance Method Summary collapse

Instance Method Details

#sources(opts = {}) ⇒ Hashie::Mash

Get all sources of economic data

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

  • 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



18
19
20
# File 'lib/fredapi/client/sources.rb', line 18

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