Class: Billit::Cl::Bill

Inherits:
Object
  • Object
show all
Includes:
BillRepresenter
Defined in:
lib/billit_representers/models/cl/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.



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

def representable_attrs
  @representable_attrs
end

Instance Method Details



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

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


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

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


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

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


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

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