Sha256: 276e53370735cea54232a9f255cde25e81d0c41cd534cfe49de0ae4a6ed839a6

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

module Profitbricks
  class FirewallRule < Profitbricks::Model
    # Deletes the FirewallRule
    #
    # @return [Boolean] true on success, false otherwise
    def delete
      response = Profitbricks.request :remove_firewall_rules, firewall_rule_ids: self.id
      return true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
profitbricks-1.1.1 lib/profitbricks/rule.rb
profitbricks-1.1.0 lib/profitbricks/rule.rb
profitbricks-1.0.3 lib/profitbricks/rule.rb
profitbricks-1.0.1 lib/profitbricks/rule.rb
profitbricks-1.0.0 lib/profitbricks/rule.rb