Sha256: 09e827da121843ea943968c3b800a45873af4f99b7383f3314c2df101bb3294d

Contents?: true

Size: 457 Bytes

Versions: 11

Compression:

Stored size: 457 Bytes

Contents

require 'billit_representers/representers/bill_basic_representer'
module Billit
  class BillBasic
    include Billit::BillBasicRepresenter

    attr_reader :representable_attrs

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

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
billit_representers-0.9.10 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.9 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.8 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.7 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.6 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.5 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.4 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.3 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.2 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.1 lib/billit_representers/models/bill_basic.rb
billit_representers-0.9.0 lib/billit_representers/models/bill_basic.rb