Class: CloudflareClient::Zone::Firewall::WAFPackage::Base

Inherits:
CloudflareClient::Zone::Firewall::WAFPackage show all
Defined in:
lib/cloudflare_client/zone/firewall/waf_package/base.rb

Direct Known Subclasses

Rule, RuleGroup

Constant Summary

Constants inherited from CloudflareClient::Zone::Firewall::WAFPackage

VALID_ACTION_MODES, VALID_ORDERS, VALID_SENSITIVITIES

Constants inherited from CloudflareClient::Zone

VALID_ZONE_STATUSES

Constants inherited from CloudflareClient

API_BASE, POSSIBLE_API_SETTINGS, VALID_BUNDLE_METHODS, VALID_DIRECTIONS, VALID_MATCHES, VERSION

Instance Attribute Summary collapse

Attributes inherited from Base

#zone_id

Instance Method Summary collapse

Methods inherited from CloudflareClient::Zone::Firewall::WAFPackage

#list, #show, #update

Methods inherited from CloudflareClient::Zone

#create_zone, #delete_zone, #edit_zone, #purge_zone_cache, #update_zone_settings, #zone, #zone_activation_check, #zone_setting, #zone_settings, #zones

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
# File 'lib/cloudflare_client/zone/firewall/waf_package/base.rb', line 4

def initialize(args)
  @package_id = args.delete(:package_id)
  id_check('package_id', package_id)
  super(**args)
end

Instance Attribute Details

#package_idObject (readonly)

Returns the value of attribute package_id.



2
3
4
# File 'lib/cloudflare_client/zone/firewall/waf_package/base.rb', line 2

def package_id
  @package_id
end