class Ec2Meta::Api20140225::MetaData::MacAddress

Public Class Methods

new(fetcher, prefix, mac_addr) click to toggle source
Calls superclass method Ec2Meta::Api::Path::new
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 89
def initialize(fetcher, prefix, mac_addr)
  super(fetcher, prefix)
  @mac_addr = mac_addr
end

Public Instance Methods

device_number() click to toggle source

Fetch network/interfaces/macs/#{mac}/device-number

# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 95
def device_number
  fetch('device-number')
end
ipv4_associations(public_ip) click to toggle source

Fetch network/interfaces/macs/#{mac}/ipv4-associations/#{public-ip}

# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 100
def ipv4_associations(public_ip)
  fetch("ipv4-associations/#{public_ip}")
end
local_hostname() click to toggle source

Fetch network/interfaces/macs/#{mac}/local-hostname

# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 105
def local_hostname
  fetch('local-hostname')
end
local_ipv4s() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 109
def local_ipv4s
  fetch('local-ipv4s')
end
mac() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 113
def mac
  fetch('mac')
end
owner_id() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 117
def owner_id
  fetch('owner-id')
end
public_hostname() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 121
def public_hostname
  fetch('public-hostname')
end
public_ipv4s() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 125
def public_ipv4s
  fetch('public-ipv4s')
end
security_group_ids() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 133
def security_group_ids
  fetch('security-group-ids')
end
security_groups() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 129
def security_groups
  fetch('security-groups')
end
subnet_id() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 137
def subnet_id
  fetch('subnet-id')
end
subnet_ipv4_cidr_block() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 141
def subnet_ipv4_cidr_block
  fetch('subnet-ipv4-cidr-block')
end
vpc_id() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 145
def vpc_id
  fetch('vpc-id')
end
vpc_ipv4_cidr_block() click to toggle source
# File lib/ec2_meta/apis/2014_02_25/meta_data.rb, line 149
def vpc_ipv4_cidr_block
  fetch('vpc-ipv4-cidr-block')
end