Class: Cloudflare::Zones

Inherits:
Representation show all
Includes:
Paginate
Defined in:
lib/cloudflare/zones.rb

Instance Method Summary collapse

Methods included from Paginate

#each, #empty?, #find_by_id

Methods inherited from Representation

#process_response, #represent, #represent_message, #to_hash

Instance Method Details

#create(name, account, jump_start = false) ⇒ Object



75
76
77
# File 'lib/cloudflare/zones.rb', line 75

def create(name, , jump_start = false)
	represent_message(self.post(name: name, account: .to_hash, jump_start: jump_start))
end

#find_by_name(name) ⇒ Object



79
80
81
# File 'lib/cloudflare/zones.rb', line 79

def find_by_name(name)
	each(name: name).first
end

#representationObject



71
72
73
# File 'lib/cloudflare/zones.rb', line 71

def representation
	Zone
end