Class: Profitbricks::FirewallRule

Inherits:
Model
  • Object
show all
Defined in:
lib/profitbricks/rule.rb

Instance Method Summary (collapse)

Methods inherited from Model

#attributes, belongs_to, has_many, #initialize, #reload

Constructor Details

This class inherits a constructor from Profitbricks::Model

Instance Method Details

- (Boolean) delete

Deletes the FirewallRule



6
7
8
9
# File 'lib/profitbricks/rule.rb', line 6

def delete
  response = Profitbricks.request :remove_firewall_rules, firewall_rule_ids: self.id
  return true
end