class HouseFloorBills::Bill

Attributes

committees[RW]
name[RW]
number[RW]
pdf[RW]
sponsor[RW]
status[RW]
summary[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/house_floor_bills/bill.rb, line 10
def self.all
  @@bills.dup.freeze
end
bills_by_status(status) click to toggle source
# File lib/house_floor_bills/bill.rb, line 14
def self.bills_by_status(status)
  self.all.select do |bill|
    bill.status.downcase == "#{status.downcase}"
  end
end
new() click to toggle source
# File lib/house_floor_bills/bill.rb, line 6
def initialize
  @@bills << self
end