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, get_xml_and_update_attributes, #get_xml_and_update_attributes, has_many, #initialize, #reload

Constructor Details

This class inherits a constructor from Profitbricks::Model

Instance Method Details

#deleteBoolean

Deletes the FirewallRule

Returns:

  • (Boolean)

    true on success, false otherwise



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

def delete
  response = Profitbricks.request :remove_firewall_rules, "<firewallRuleIds>#{self.id}</firewallRuleIds>"
  return true if response[:remove_firewall_rules_response][:return]
end