Class: Apia::RouteGroup
- Inherits:
-
Object
- Object
- Apia::RouteGroup
- Defined in:
- lib/apia/route_group.rb
Instance Attribute Summary collapse
-
#default_controller ⇒ Object
Returns the value of attribute default_controller.
-
#description ⇒ Object
Returns the value of attribute description.
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(id, parent) ⇒ RouteGroup
constructor
A new instance of RouteGroup.
Constructor Details
#initialize(id, parent) ⇒ RouteGroup
Returns a new instance of RouteGroup.
13 14 15 16 17 |
# File 'lib/apia/route_group.rb', line 13 def initialize(id, parent) @id = id @parent = parent @groups = [] end |
Instance Attribute Details
#default_controller ⇒ Object
Returns the value of attribute default_controller.
10 11 12 |
# File 'lib/apia/route_group.rb', line 10 def default_controller @default_controller end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/apia/route_group.rb', line 9 def description @description end |
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
11 12 13 |
# File 'lib/apia/route_group.rb', line 11 def groups @groups end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/apia/route_group.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/apia/route_group.rb', line 8 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'lib/apia/route_group.rb', line 7 def parent @parent end |