Class: Automux::Redirector::Blueprint
- Inherits:
-
Object
- Object
- Automux::Redirector::Blueprint
- Defined in:
- lib/automux/redirector/blueprint.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#blueprint_name ⇒ Object
readonly
Returns the value of attribute blueprint_name.
-
#clone_name ⇒ Object
readonly
Returns the value of attribute clone_name.
Instance Method Summary collapse
-
#initialize(args) ⇒ Blueprint
constructor
A new instance of Blueprint.
- #redirect ⇒ Object
Constructor Details
#initialize(args) ⇒ Blueprint
Returns a new instance of Blueprint.
6 7 8 9 10 |
# File 'lib/automux/redirector/blueprint.rb', line 6 def initialize(args) @action = args[1] @blueprint_name = args[2] @clone_name = args[3] end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
4 5 6 |
# File 'lib/automux/redirector/blueprint.rb', line 4 def action @action end |
#blueprint_name ⇒ Object (readonly)
Returns the value of attribute blueprint_name.
4 5 6 |
# File 'lib/automux/redirector/blueprint.rb', line 4 def blueprint_name @blueprint_name end |
#clone_name ⇒ Object (readonly)
Returns the value of attribute clone_name.
4 5 6 |
# File 'lib/automux/redirector/blueprint.rb', line 4 def clone_name @clone_name end |
Instance Method Details
#redirect ⇒ Object
12 13 14 |
# File 'lib/automux/redirector/blueprint.rb', line 12 def redirect Automux::Controller::Blueprints.new(params).public_send(action) end |