class OpenStack::Network::Port
Attributes
admin_state_up[R]
device_id[R]
device_owner[R]
fixed_ips[R]
id[R]
mac_address[R]
name[R]
network_id[R]
status[R]
tenant_id[R]
Public Class Methods
new(port_hash={})
click to toggle source
# File lib/openstack/network/port.rb, line 16 def initialize(port_hash={}) @id = port_hash["id"] @network_id = port_hash["network_id"] @name = port_hash["name"] @admin_state_up = port_hash["admin_state_up"] @status = port_hash["status"] @mac_address = port_hash["mac_address"] @fixed_ips = port_hash["fixed_ips"] @device_id = port_hash["device_id"] @device_owner = port_hash["device_owner"] @tenant_id = port_hash["tenant_id"] end