Class: Apia::RouteGroup

Inherits:
Definition show all
Defined in:
lib/apia/route_group.rb

Instance Attribute Summary collapse

Attributes inherited from Definition

#description, #id, #name, #schema

Instance Method Summary collapse

Methods inherited from Definition

#schema?, #setup, #validate

Constructor Details

#initialize(id, parent) ⇒ RouteGroup

rubocop:disable Lint/MissingSuper



11
12
13
14
15
# File 'lib/apia/route_group.rb', line 11

def initialize(id, parent)
  @id = id
  @parent = parent
  @groups = []
end

Instance Attribute Details

#default_controllerObject

Returns the value of attribute default_controller.



7
8
9
# File 'lib/apia/route_group.rb', line 7

def default_controller
  @default_controller
end

#groupsObject (readonly)

Returns the value of attribute groups.



8
9
10
# File 'lib/apia/route_group.rb', line 8

def groups
  @groups
end

#parentObject (readonly)

Returns the value of attribute parent.



6
7
8
# File 'lib/apia/route_group.rb', line 6

def parent
  @parent
end