Class: Billit::Bill

Inherits:
Object
  • Object
show all
Includes:
BillRepresenter
Defined in:
lib/billit_representers/models/bill.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BillRepresenter

included

Instance Attribute Details

#representable_attrsObject (readonly)

Returns the value of attribute representable_attrs.



6
7
8
# File 'lib/billit_representers/models/bill.rb', line 6

def representable_attrs
  @representable_attrs
end

Instance Method Details



20
21
22
# File 'lib/billit_representers/models/bill.rb', line 20

def bill_draft_link
  links[:bill_draft].href if links[:bill_draft]
end


16
17
18
# File 'lib/billit_representers/models/bill.rb', line 16

def law_web_link
  links[:law_web].href if links[:law_web]
end


12
13
14
# File 'lib/billit_representers/models/bill.rb', line 12

def law_xml_link
  links[:law_xml].href if links[:law_xml]
end


8
9
10
# File 'lib/billit_representers/models/bill.rb', line 8

def self_link
  links[:self].href if links[:self]
end