lib/billit_representers/models/bill.rb in billit_representers-0.8.7 vs lib/billit_representers/models/bill.rb in billit_representers-0.8.8
- old
+ new
@@ -1,6 +1,22 @@
require 'billit_representers/representers/bill_model_representer'
module Billit
class Bill
include Billit::BillModelRepresenter
+
+ def self_link
+ links[:self].href if links[:self].href
+ end
+
+ def law_xml_link
+ links[:law_xml].href if links[:law_xml].href
+ end
+
+ def law_web_link
+ links[:law_web].href if links[:law_web].href
+ end
+
+ def bill_draft_link
+ links[:bill_draft].href if links[:bill_draft].href
+ end
end
end
\ No newline at end of file