Class: AwsRo::ElasticLoadBalancingV2::Listener
- Inherits:
-
Object
- Object
- AwsRo::ElasticLoadBalancingV2::Listener
- Extended by:
- Forwardable
- Defined in:
- lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
Instance Method Summary collapse
-
#initialize(listener, client) ⇒ Listener
constructor
A new instance of Listener.
- #rules ⇒ Object
Constructor Details
#initialize(listener, client) ⇒ Listener
Returns a new instance of Listener.
31 32 33 34 |
# File 'lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb', line 31 def initialize(listener, client) @listener = listener @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
28 29 30 |
# File 'lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb', line 28 def client @client end |
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
28 29 30 |
# File 'lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb', line 28 def listener @listener end |
Instance Method Details
#rules ⇒ Object
36 37 38 39 40 |
# File 'lib/aws_ro/elastic_load_balancing_v2/load_balancer.rb', line 36 def rules @rules ||= client.describe_rules(listener_arn: arn).rules.map do |rule| Rule.new(rule, client) end end |