class AwsClient::Elb

Attributes

raw_data[R]
raw_tags[R]

Public Class Methods

new(raw_data) click to toggle source
# File lib/elb.rb, line 6
def initialize(raw_data)
  @raw_data = raw_data
end

Public Instance Methods

add_tags!(tag_data) click to toggle source
# File lib/elb.rb, line 14
def add_tags!(tag_data)
  @raw_tags = tag_data.tags
end
dns_name() click to toggle source
# File lib/elb.rb, line 22
def dns_name
  @raw_data.dns_name
end
is_for_tag?(tag_key, tag_value) click to toggle source
# File lib/elb.rb, line 10
def is_for_tag?(tag_key, tag_value)
  tags.include?({ tag_key => tag_value})
end
name() click to toggle source
# File lib/elb.rb, line 18
def name
  @raw_data.load_balancer_name
end
tags() click to toggle source
# File lib/elb.rb, line 26
def tags
  @tags ||= @raw_tags.collect{|raw_tag| {raw_tag.key => raw_tag.value } }
end