Class: Cronjob::Ping
Constant Summary collapse
- ENDPOINT =
self.name.to_s.downcase.split('::').last
- METHOD =
:get
Instance Attribute Summary
Attributes inherited from Requests
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Ping
constructor
A new instance of Ping.
Methods inherited from Requests
Constructor Details
#initialize(args = {}) ⇒ Ping
Returns a new instance of Ping.
6 7 8 |
# File 'lib/cronjob/requests/ping.rb', line 6 def initialize(args = {}) @response = execute(METHOD, ENDPOINT, args) end |