module AwsExtensions::EC2::DhcpOptions
Public Instance Methods
domain_name()
click to toggle source
Public: Returns the value of domain-name
# File lib/aws_extensions/ec2/DhcpOptions.rb, line 11 def domain_name get_attribute_values("domain-name").first end
domain_name_servers()
click to toggle source
Public: Returns the value of the domain-name-servers
# File lib/aws_extensions/ec2/DhcpOptions.rb, line 6 def domain_name_servers get_attribute_values("domain-name-servers") end
netbios_name_servers()
click to toggle source
Public: Returns the value of netbios-name-servers
# File lib/aws_extensions/ec2/DhcpOptions.rb, line 21 def netbios_name_servers get_attribute_values("netbios-name-servers") end
netbios_node_type()
click to toggle source
Public: Returns the value of netbios-node-type
# File lib/aws_extensions/ec2/DhcpOptions.rb, line 26 def netbios_node_type get_attribute_values("netbios-node-type").first end
ntp_servers()
click to toggle source
Public: Returns the value of ntp-servers if set
# File lib/aws_extensions/ec2/DhcpOptions.rb, line 16 def ntp_servers get_attribute_values("ntp-servers") end
Private Instance Methods
get_attribute_values(attr_name)
click to toggle source
Internal: Gets an named attribute from the dhcp_configuration
# File lib/aws_extensions/ec2/DhcpOptions.rb, line 33 def get_attribute_values(attr_name) self.dhcp_configurations.select { |conf| conf.key == attr_name }.first.values.map(&:value) rescue [] end