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’



12
13
14
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 12

def ami
  fetch('ami')
end

#ebs(no) ⇒ Object

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



17
18
19
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 17

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

#ephemeral(no) ⇒ Object

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



22
23
24
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 22

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

#rootObject

Fetch ‘block-device-mapping/root’



27
28
29
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 27

def root
  fetch('root')
end

#swapObject

Fetch ‘block-device-mapping/swap’



32
33
34
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 32

def swap
  fetch('swap')
end