Method: OpenCongressApi::Fetcher.for
- Defined in:
- lib/opencongress_api/fetcher.rb
.for(type) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/opencongress_api/fetcher.rb', line 8 def for(type) return case type.to_sym when :people People.new when :bills Bills.new when :hot_bills HotBills.new when :most_blogged_bills MostBloggedBills.new when :newsworthy_bills NewsworthyBills.new when :most_commented_bills MostCommentedBills.new when :most_tracked_bills MostTrackedBills.new when :most_supported_bills MostSupportedBills.new when :most_opposed_bills MostOpposedBills.new end end |