Class: Xfrtuc::Group
- Inherits:
-
ApiEndpoint
- Object
- ApiEndpoint
- Xfrtuc::Group
- Defined in:
- lib/xfrtuc.rb
Instance Method Summary collapse
- #create(name, log_input_url = nil) ⇒ Object
- #delete(name) ⇒ Object
- #info(name) ⇒ Object
-
#initialize(client) ⇒ Group
constructor
A new instance of Group.
- #list ⇒ Object
Constructor Details
#initialize(client) ⇒ Group
Returns a new instance of Group.
64 |
# File 'lib/xfrtuc.rb', line 64 def initialize(client); super; end |
Instance Method Details
#create(name, log_input_url = nil) ⇒ Object
74 75 76 |
# File 'lib/xfrtuc.rb', line 74 def create(name, log_input_url=nil) client.post("/groups", { name: name, log_input_url: log_input_url }) end |
#delete(name) ⇒ Object
78 79 80 |
# File 'lib/xfrtuc.rb', line 78 def delete(name) client.delete("/groups/#{URI.encode(name)}") end |
#info(name) ⇒ Object
66 67 68 |
# File 'lib/xfrtuc.rb', line 66 def info(name) client.get("/groups/#{URI.encode(name)}") end |
#list ⇒ Object
70 71 72 |
# File 'lib/xfrtuc.rb', line 70 def list client.get("/groups") end |