Method: FREDAPI::Client::Source#source

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

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

Get a source 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

  • source_id (Integer)

    The id for a source

  • realtime_start (String)

    The start of the real-time period

  • realtime_end (String)

    The end of the real-time period

Returns:

  • (Hashie::Mash)

    Hash containing the results



17
18
19
# File 'lib/fredapi/client/source.rb', line 17

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