Class: FlexiScale::NetworkInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/api/Flexiscale API.rb,
lib/api/Flexiscale APIAddons.rb

Overview

http://api.flexiscale.comNetworkInterface

network_interface_id - SOAP::SOAPInt
server_id - SOAP::SOAPInt
vlan_id - SOAP::SOAPInt
mac_address - SOAP::SOAPString

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_interface_id = nil, server_id = nil, vlan_id = nil, mac_address = nil) ⇒ NetworkInterface

Returns a new instance of NetworkInterface.



58
59
60
61
62
63
# File 'lib/api/Flexiscale API.rb', line 58

def initialize(network_interface_id = nil, server_id = nil, vlan_id = nil, mac_address = nil)
  @network_interface_id = network_interface_id
  @server_id = server_id
  @vlan_id = vlan_id
  @mac_address = mac_address
end

Instance Attribute Details

#mac_addressObject

Returns the value of attribute mac_address.



56
57
58
# File 'lib/api/Flexiscale API.rb', line 56

def mac_address
  @mac_address
end

#network_interface_idObject

:nodoc:



53
54
55
# File 'lib/api/Flexiscale API.rb', line 53

def network_interface_id
  @network_interface_id
end

#server_idObject

Returns the value of attribute server_id.



54
55
56
# File 'lib/api/Flexiscale API.rb', line 54

def server_id
  @server_id
end

#vlan_idObject

Returns the value of attribute vlan_id.



55
56
57
# File 'lib/api/Flexiscale API.rb', line 55

def vlan_id
  @vlan_id
end

Instance Method Details

#to_handy_hashObject



59
60
61
62
63
# File 'lib/api/Flexiscale APIAddons.rb', line 59

def to_handy_hash
  ::FlexiScale::attrs_to_hash(self, :server_id, :vlan_id, :mac_address).merge(
    :fxs_id => self.network_interface_id
  )
end