Class: FlexiScale::NetworkInterface
- Inherits:
-
Object
- Object
- FlexiScale::NetworkInterface
- 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
-
#mac_address ⇒ Object
Returns the value of attribute mac_address.
-
#network_interface_id ⇒ Object
:nodoc:.
-
#server_id ⇒ Object
Returns the value of attribute server_id.
-
#vlan_id ⇒ Object
Returns the value of attribute vlan_id.
Instance Method Summary collapse
-
#initialize(network_interface_id = nil, server_id = nil, vlan_id = nil, mac_address = nil) ⇒ NetworkInterface
constructor
A new instance of NetworkInterface.
- #to_handy_hash ⇒ Object
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_address ⇒ Object
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_id ⇒ Object
:nodoc:
53 54 55 |
# File 'lib/api/Flexiscale API.rb', line 53 def network_interface_id @network_interface_id end |
#server_id ⇒ Object
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_id ⇒ Object
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_hash ⇒ Object
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 |