Class: Wizardry::Routing::NextPage

Inherits:
Object
  • Object
show all
Defined in:
lib/wizardry/routing/next_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, condition = nil, label: nil) ⇒ NextPage

Returns a new instance of NextPage.



6
7
8
9
10
# File 'lib/wizardry/routing/next_page.rb', line 6

def initialize(name, condition = nil, label: nil)
  @name      = name
  @condition = condition
  @label     = label
end

Instance Attribute Details

#conditionObject (readonly)

Returns the value of attribute condition.



4
5
6
# File 'lib/wizardry/routing/next_page.rb', line 4

def condition
  @condition
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/wizardry/routing/next_page.rb', line 4

def label
  @label
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/wizardry/routing/next_page.rb', line 4

def name
  @name
end