class OpenStates::Bill

Public Class Methods

api_method() click to toggle source
# File lib/openstates/models/bill.rb, line 30
def api_method
  :bills
end
bill_details(state, session, bill_id) click to toggle source
# File lib/openstates/models/bill.rb, line 38
def bill_details(state, session, bill_id)
  return if !state || !session || !bill_id

  options = {
    state: state,
    session: session,
    bill_id: bill_id
  }

  response = OpenStates.bills(options)

  from_hash(response)
end
find_by_openstates_id(os_id) click to toggle source
# File lib/openstates/models/bill.rb, line 52
def find_by_openstates_id(os_id)
  return if !os_id

  response = OpenStates.bill(os_id)

  from_hash(response)
end
id_key() click to toggle source
# File lib/openstates/models/bill.rb, line 34
def id_key
  :bill_id
end