Class: FREDAPI::Client

Inherits:
Object
  • Object
show all
Includes:
Category, Release, Releases, Series, Source, Tags, Connection, Request
Defined in:
lib/fredapi/client.rb,
lib/fredapi/client/tags.rb,
lib/fredapi/client/series.rb,
lib/fredapi/client/source.rb,
lib/fredapi/client/release.rb,
lib/fredapi/client/sources.rb,
lib/fredapi/client/category.rb,
lib/fredapi/client/releases.rb,
lib/fredapi/client/series/tags.rb,
lib/fredapi/client/tags/series.rb,
lib/fredapi/client/related_tags.rb,
lib/fredapi/client/release/tags.rb,
lib/fredapi/client/category/tags.rb,
lib/fredapi/client/release/dates.rb,
lib/fredapi/client/series/search.rb,
lib/fredapi/client/release/series.rb,
lib/fredapi/client/releases/dates.rb,
lib/fredapi/client/series/release.rb,
lib/fredapi/client/series/updates.rb,
lib/fredapi/client/category/series.rb,
lib/fredapi/client/release/sources.rb,
lib/fredapi/client/source/releases.rb,
lib/fredapi/client/category/related.rb,
lib/fredapi/client/category/children.rb,
lib/fredapi/client/series/categories.rb,
lib/fredapi/client/series/search/tags.rb,
lib/fredapi/client/series/observations.rb,
lib/fredapi/client/release/related_tags.rb,
lib/fredapi/client/series/vintage_dates.rb,
lib/fredapi/client/category/related_tags.rb,
lib/fredapi/client/series/search/related_tags.rb

Overview

Client class to create FREDAPI instances

Defined Under Namespace

Modules: Category, RelatedTags, Release, Releases, Series, Source, Sources, Tags

Instance Method Summary collapse

Methods included from Tags

#tags

Methods included from Tags::Series

#tags_series

Methods included from Source

#source

Methods included from Source::Releases

#source_releases

Methods included from Series

#series

Methods included from Series::VintageDates

#series_vintage_dates

Methods included from Series::Updates

#series_updates

Methods included from Series::Tags

#series_tags

Methods included from Series::Search

#series_search

Methods included from Series::Search::RelatedTags

#series_search_related_tags

Methods included from Series::Search::Tags

#series_search_tags

Methods included from Series::Release

#series_release

Methods included from Series::Observations

#series_observations

Methods included from Series::Categories

#series_categories

Methods included from Releases

#releases

Methods included from Releases::Dates

#releases_dates

Methods included from Release

#release

Methods included from Release::RelatedTags

#release_related_tags

Methods included from Release::Tags

#release_tags

Methods included from Release::Sources

#release_sources

Methods included from Release::Series

#release_series

Methods included from Release::Dates

#release_dates

Methods included from Category

#category

Methods included from Category::Tags

#category_tags

Methods included from Category::Series

#category_series

Methods included from Category::RelatedTags

#category_related_tags

Methods included from Category::Related

#category_related

Methods included from Category::Children

#category_children

Methods included from Request

#delete, #get, #patch, #post, #put

Constructor Details

#initialize(opts = {}) ⇒ Client

Returns a new instance of Client.



19
20
21
22
23
24
25
26
27
# File 'lib/fredapi/client.rb', line 19

def initialize opts={}
  # Merge opts
  opts = FREDAPI.options.merge opts

  # Create instance variables
  Configuration::OPTION_KEYS.each do |k|
    send "#{k}=", opts[k]
  end
end