Class: ActSection

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/act_section.rb

Instance Method Summary collapse

Instance Method Details

#labelObject


6
7
8
# File 'app/models/act_section.rb', line 6

def label
  "Section #{section_number}: #{title}"
end

#legislation_uri_for_subsection(subsection_number) ⇒ Object


10
11
12
# File 'app/models/act_section.rb', line 10

def legislation_uri_for_subsection subsection_number
  "#{legislation_url}/#{subsection_number}"
end