class Ec2ssh::Ec2Instances::InstanceWrapper

Public Class Methods

new(ec2_instance) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 37
def initialize(ec2_instance)
  @ec2_instance = ec2_instance
  @_tags ||= @ec2_instance.tags.each_with_object({}) {|t, h| h[t.key] = t.value }
end

Public Instance Methods

tag(key) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 42
def tag(key)
  @_tags[key]
end
tags() click to toggle source
Calls superclass method
# File lib/ec2ssh/ec2_instances.rb, line 46
def tags
  TagsWrapper.new(super)
end

Private Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 52
def method_missing(name, *args, &block)
  @ec2_instance.public_send(name, *args, &block)
end
respond_to_missing?(symbol, include_private) click to toggle source
# File lib/ec2ssh/ec2_instances.rb, line 56
def respond_to_missing?(symbol, include_private)
  @ec2_instance.respond_to?(symbol, include_private)
end