Class: Kanpachi::Section
- Inherits:
-
Object
- Object
- Kanpachi::Section
- Defined in:
- lib/kanpachi/section.rb
Overview
Class for section data.
Instance Attribute Summary collapse
- #description ⇒ Object
- #name ⇒ Object readonly
- #routes ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(name) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(name) ⇒ Section
Returns a new instance of Section.
10 11 12 13 |
# File 'lib/kanpachi/section.rb', line 10 def initialize(name) @name = name @routes = [] end |
Instance Attribute Details
#description ⇒ Object
8 9 10 |
# File 'lib/kanpachi/section.rb', line 8 def description @description end |
#name ⇒ Object (readonly)
6 7 8 |
# File 'lib/kanpachi/section.rb', line 6 def name @name end |
#routes ⇒ Object (readonly)
7 8 9 |
# File 'lib/kanpachi/section.rb', line 7 def routes @routes end |