Class: Fog::Network::SakuraCloud::Interface

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/sakuracloud/models/network/interface.rb

Instance Method Summary collapse

Instance Method Details

#connect_to_switch(switch_id) ⇒ Object



20
21
22
23
# File 'lib/fog/sakuracloud/models/network/interface.rb', line 20

def connect_to_switch(switch_id)
  service.connect_interface_to_switch(identity, switch_id)
  true
end

#deleteObject Also known as: destroy



14
15
16
17
# File 'lib/fog/sakuracloud/models/network/interface.rb', line 14

def delete
  service.delete_interface(identity)
  true
end