class Aws::AutoScaling::Group
Public Class Methods
new(name, options = {})
click to toggle source
# File lib/aws-sdk/enhanced/auto_scaling.rb, line 8 def initialize(name, options = {}) options = { client: Aws::AutoScaling::Client.new }.merge(options) @client = options[:client] response = @client.describe_auto_scaling_groups(auto_scaling_group_names: [ name ]) @group = response.auto_scaling_groups.first end
Public Instance Methods
exists?()
click to toggle source
# File lib/aws-sdk/enhanced/auto_scaling.rb, line 18 def exists? !@group.nil? end
method_missing(sym, *args, &block)
click to toggle source
Calls superclass method
# File lib/aws-sdk/enhanced/auto_scaling.rb, line 26 def method_missing(sym, *args, &block) if has_method?(sym) @group.send(sym, *args, &block) else super(sym, *args, &block) end end
respond_to?(sym, include_all = false)
click to toggle source
Calls superclass method
# File lib/aws-sdk/enhanced/auto_scaling.rb, line 22 def respond_to?(sym, include_all = false) has_method?(sym) || super(sym, include_all) end
Private Instance Methods
has_method?(m)
click to toggle source
# File lib/aws-sdk/enhanced/auto_scaling.rb, line 36 def has_method?(m) exists? && @group.respond_to?(m) end