Class: Ec2Meta::Api20140225::MetaData::BlockDeviceMapping

Inherits:
Ec2Meta::Api::Path show all
Defined in:
lib/ec2_meta/apis/2014_02_25/meta_data.rb

Instance Attribute Summary

Attributes inherited from Ec2Meta::Api::Path

#prefix

Instance Method Summary collapse

Methods inherited from Ec2Meta::Api::Path

#initialize

Constructor Details

This class inherits a constructor from Ec2Meta::Api::Path

Instance Method Details

#amiObject

Fetch ‘block-device-mapping/ami’



10
11
12
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 10

def ami
  fetch('ami')
end

#ebs(no) ⇒ Object

Fetch ‘block-device-mapping/ebs#no’



15
16
17
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 15

def ebs(no)
  fetch("ebs#{no}")
end

#ephemeral(no) ⇒ Object

Fetch ‘block-device-mapping/ephemeral#no’



20
21
22
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 20

def ephemeral(no)
  fetch("ephemeral#{no}")
end

#rootObject

Fetch ‘block-device-mapping/root’



25
26
27
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 25

def root
  fetch('root')
end

#swapObject

Fetch ‘block-device-mapping/swap’



30
31
32
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 30

def swap
  fetch('swap')
end