Class: Applb::DSL::EC2::LoadBalancer::Listeners::Listener

Inherits:
Object
  • Object
show all
Includes:
Checker, TemplateHelper
Defined in:
lib/applb/dsl/rule.rb,
lib/applb/dsl/rules.rb,
lib/applb/dsl/listener.rb

Defined Under Namespace

Classes: Result, Rules

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TemplateHelper

#context, #include_template

Constructor Details

#initialize(context, lb_name, &block) ⇒ Listener

Returns a new instance of Listener.



89
90
91
92
93
94
95
96
# File 'lib/applb/dsl/listener.rb', line 89

def initialize(context, lb_name, &block)
  @context = context.dup
  @lb_name = lb_name

  @result = Result.new(@context, @lb_name)

  instance_eval(&block)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



87
88
89
# File 'lib/applb/dsl/listener.rb', line 87

def result
  @result
end