Class: Domrobot::Sections::Nameserver

Inherits:
Object
  • Object
show all
Defined in:
lib/domrobot/sections/nameserver.rb

Class Method Summary collapse

Class Method Details

.check(*args) ⇒ Object



5
6
7
8
9
10
# File 'lib/domrobot/sections/nameserver.rb', line 5

def check *args
  args = Util.stringify_keys args.first
  return false unless args["domain"]
  return false unless args["ns"]
  run __method__, args
end

.create(*args) ⇒ Object



12
13
14
15
16
17
# File 'lib/domrobot/sections/nameserver.rb', line 12

def create *args
  args = Util.stringify_keys args.first
  return false unless args["domain"]
  return false unless args["type"]
  run __method__, args
end

.createRecord(*args) ⇒ Object



19
20
21
22
23
24
# File 'lib/domrobot/sections/nameserver.rb', line 19

def createRecord *args
  args = Util.stringify_keys args.first
  return false unless args["domain"]
  return false unless args["type"]
  run __method__, args
end

.delete(*args) ⇒ Object



41
42
43
44
# File 'lib/domrobot/sections/nameserver.rb', line 41

def delete *args
  args = Util.stringify_keys args.first
  run __method__, args
end

.deleteRecord(*args) ⇒ Object



51
52
53
54
55
# File 'lib/domrobot/sections/nameserver.rb', line 51

def deleteRecord *args
  args = Util.stringify_keys args.first
  return false unless args["id"]
  run __method__, args
end

.info(*args) ⇒ Object



26
27
28
29
# File 'lib/domrobot/sections/nameserver.rb', line 26

def info *args
  args = Util.stringify_keys args.first
  run __method__, args
end

.list(*args) ⇒ Object



31
32
33
34
# File 'lib/domrobot/sections/nameserver.rb', line 31

def list *args
  args = Util.stringify_keys args.first
  run __method__, args
end

.update(*args) ⇒ Object



36
37
38
39
# File 'lib/domrobot/sections/nameserver.rb', line 36

def update *args
  args = Util.stringify_keys args.first
  run __method__, args
end

.updateRecord(*args) ⇒ Object



46
47
48
49
50
# File 'lib/domrobot/sections/nameserver.rb', line 46

def updateRecord *args
  args = Util.stringify_keys args.first
  return false unless args["id"]
  run __method__, args
end