Class: Automux::Redirector::Blueprint

Inherits:
Object
  • Object
show all
Defined in:
lib/automux/redirector/blueprint.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



4
5
6
# File 'lib/automux/redirector/blueprint.rb', line 4

def action
  @action
end

#blueprint_nameObject (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_nameObject (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

#redirectObject



12
13
14
# File 'lib/automux/redirector/blueprint.rb', line 12

def redirect
  Automux::Controller::Blueprints.new(params).public_send(action)
end