class Ec2Meta::Client

Public Class Methods

new(options = {}) click to toggle source
# File lib/ec2_meta/client.rb, line 5
def initialize(options = {})
  @options = {
    api_version: '2014-02-25'
  }.merge(options)

  load_api_module
end

Private Instance Methods

fetcher() click to toggle source
# File lib/ec2_meta/client.rb, line 15
def fetcher
  return @fetcher if @fetcher
  @fetcher = Fetcher.new(@options)
end
load_api_module() click to toggle source
# File lib/ec2_meta/client.rb, line 20
def load_api_module
  extend ApiLoader.api_module(@options[:api_version])
end