Class: OpenCongressApi::Fetcher::Bills
- Inherits:
-
Base
- Object
- Base
- OpenCongressApi::Fetcher::Bills
show all
- Defined in:
- lib/opencongress_api/fetcher/bills.rb
Instance Method Summary
collapse
Methods inherited from Base
#fetch
Constructor Details
#initialize ⇒ Bills
Returns a new instance of Bills.
4
5
6
|
# File 'lib/opencongress_api/fetcher/bills.rb', line 4
def initialize
@type = :bills
end
|
Instance Method Details
8
9
10
|
# File 'lib/opencongress_api/fetcher/bills.rb', line 8
def format_result(result)
OpenCongressApi::Type::Bill.new(result)
end
|
#is_json? ⇒ Boolean
16
17
18
|
# File 'lib/opencongress_api/fetcher/bills.rb', line 16
def is_json?
false
end
|
#json_result(json) ⇒ Object
12
13
14
|
# File 'lib/opencongress_api/fetcher/bills.rb', line 12
def json_result(json)
json['bill']
end
|