Class: Cloudflare::DNS::Records

Inherits:
Representation
  • Object
show all
Includes:
Paginate
Defined in:
lib/cloudflare/dns.rb

Constant Summary collapse

TTL_AUTO =
1

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(type, name, content, **options) ⇒ Object



78
79
80
# File 'lib/cloudflare/dns.rb', line 78

def create(type, name, content, **options)
	represent_message(self.post(type: type, name: name, content: content, **options))
end

#find_by_name(name) ⇒ Object



82
83
84
# File 'lib/cloudflare/dns.rb', line 82

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

#representationObject



72
73
74
# File 'lib/cloudflare/dns.rb', line 72

def representation
	Record
end