Class: CloudflareClient::Zone::Base
- Inherits:
-
CloudflareClient::Zone
- Object
- CloudflareClient
- CloudflareClient::Zone
- CloudflareClient::Zone::Base
- Defined in:
- lib/cloudflare_client/zone/base.rb
Direct Known Subclasses
Analytics, CustomHostname, CustomPage, CustomSSL, DNS, Firewall, KeylessSSL, Log, PageRule, RailgunConnections, RateLimit, SSL, Subscription
Constant Summary
Constants inherited from CloudflareClient::Zone
Constants inherited from CloudflareClient
API_BASE, POSSIBLE_API_SETTINGS, VALID_BUNDLE_METHODS, VALID_DIRECTIONS, VALID_MATCHES, VERSION
Instance Attribute Summary collapse
-
#zone_id ⇒ Object
readonly
Returns the value of attribute zone_id.
Instance Method Summary collapse
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
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/base.rb', line 4 def initialize(args) @zone_id = args.delete(:zone_id) id_check('zone_id', zone_id) super end |
Instance Attribute Details
#zone_id ⇒ Object (readonly)
Returns the value of attribute zone_id.
2 3 4 |
# File 'lib/cloudflare_client/zone/base.rb', line 2 def zone_id @zone_id end |