Class: Cloudflare::Account

Inherits:
Representation
  • Object
show all
Defined in:
lib/cloudflare/accounts.rb

Constant Summary

Constants inherited from Representation

Representation::WRAPPER

Instance Method Summary collapse

Methods inherited from Representation

#errors, #messages, #represent, #represent_message, #representation, #result, #results, #success?, #to_hash, #to_id

Instance Method Details

#idObject



13
14
15
# File 'lib/cloudflare/accounts.rb', line 13

def id
	result[:id]
end

#kv_namespacesObject



17
18
19
# File 'lib/cloudflare/accounts.rb', line 17

def kv_namespaces
	self.with(KV::Namespaces, path: "storage/kv/namespaces")
end