Class: Cronjob::Create

Inherits:
Requests show all
Defined in:
lib/cronjob/requests/create.rb

Constant Summary collapse

ENDPOINT =

I could name that class New but we will have New.new wich is weird

'new'
METHOD =
:post

Instance Attribute Summary

Attributes inherited from Requests

#response

Instance Method Summary collapse

Methods inherited from Requests

#client, #execute, #parse

Constructor Details

#initialize(args = {}) ⇒ Create

Returns a new instance of Create.



6
7
8
# File 'lib/cronjob/requests/create.rb', line 6

def initialize(args = {})
  @response = execute(METHOD, ENDPOINT, args)
end