Class: Ec2Meta::Api::Path

Inherits:
BasicObject
Defined in:
lib/ec2_meta/apis/path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fetcher, prefix = []) ⇒ Path

Returns a new instance of Path.



8
9
10
11
# File 'lib/ec2_meta/apis/path.rb', line 8

def initialize(fetcher, prefix = [])
  @_fetcher = fetcher
  @prefix = (prefix.is_a?(::String) ? [prefix] : prefix)
end

Instance Attribute Details

#prefixObject (readonly)

Returns the value of attribute prefix.



6
7
8
# File 'lib/ec2_meta/apis/path.rb', line 6

def prefix
  @prefix
end