class GCEMetadata::Root

Public Class Methods

new(path = '/') click to toggle source
# File lib/gce_metadata/root.rb, line 5
def initialize(path = '/')
  @path = path
  @default_child_key = 'v1'
end

Public Instance Methods

is_struct?(child_key) click to toggle source
# File lib/gce_metadata/root.rb, line 16
def is_struct?(child_key)
  true
end
new_child(child_key) click to toggle source
# File lib/gce_metadata/root.rb, line 10
def new_child(child_key)
  logging("new_child(#{child_key.inspect})") do
    Revision.new("#{path}#{child_key}/")
  end
end