Class: LegislationUK::ContentsItem

Inherits:
Object
  • Object
show all
Includes:
ItemNumberHelper, LegislationUriHelper, TitleHelper, Morph
Defined in:
lib/legislation_uk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LegislationUriHelper

#legislation_uri

Methods included from ItemNumberHelper

#number

Methods included from TitleHelper

#title

Instance Attribute Details

#legislationObject

Returns the value of attribute legislation.



188
189
190
# File 'lib/legislation_uk.rb', line 188

def legislation
  @legislation
end

Instance Method Details

#opsi_uriObject



190
191
192
# File 'lib/legislation_uk.rb', line 190

def opsi_uri
  @legislation.opsi_uri_for_section(number)
end