Class: Xfrtuc::Group

Inherits:
ApiEndpoint show all
Defined in:
lib/xfrtuc.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Group

Returns a new instance of Group.



112
113
114
# File 'lib/xfrtuc.rb', line 112

def initialize(client)
  super
end

Instance Method Details

#create(name, log_input_url = nil) ⇒ Object



124
125
126
# File 'lib/xfrtuc.rb', line 124

def create(name, log_input_url = nil)
  client.post("/groups", { name: name, log_input_url: log_input_url })
end

#delete(name) ⇒ Object



128
129
130
# File 'lib/xfrtuc.rb', line 128

def delete(name)
  client.delete("/groups/#{CGI.escape(name)}")
end

#info(name) ⇒ Object



116
117
118
# File 'lib/xfrtuc.rb', line 116

def info(name)
  client.get("/groups/#{CGI.escape(name)}")
end

#listObject



120
121
122
# File 'lib/xfrtuc.rb', line 120

def list
  client.get("/groups")
end