Class: CloudflareClient::Zone::Base

Inherits:
CloudflareClient::Zone show all
Defined in:
lib/cloudflare_client/zone/base.rb

Constant Summary

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

Instance Method Summary collapse

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_idObject (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