Class: FREDAPI::Client
- Inherits:
-
Object
- Object
- FREDAPI::Client
- 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
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Tags
Methods included from Tags::Series
Methods included from Source
Methods included from Source::Releases
Methods included from Series
Methods included from Series::VintageDates
Methods included from Series::Updates
Methods included from Series::Tags
Methods included from Series::Search
Methods included from Series::Search::RelatedTags
Methods included from Series::Search::Tags
Methods included from Series::Release
Methods included from Series::Observations
Methods included from Series::Categories
Methods included from Releases
Methods included from Releases::Dates
Methods included from Release
Methods included from Release::RelatedTags
Methods included from Release::Tags
Methods included from Release::Sources
Methods included from Release::Series
Methods included from Release::Dates
Methods included from Category
Methods included from Category::Tags
Methods included from Category::Series
Methods included from Category::RelatedTags
Methods included from Category::Related
Methods included from 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..merge opts # Create instance variables Configuration::OPTION_KEYS.each do |k| send "#{k}=", opts[k] end end |