Class: Blueticks::Resources::PingResource

Inherits:
BaseResource show all
Defined in:
lib/blueticks/resources/ping.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#client

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Blueticks::BaseResource

Instance Method Details

#retrieveObject

Health check. Returns basic info about the authenticated API key.



10
11
12
13
# File 'lib/blueticks/resources/ping.rb', line 10

def retrieve
  data = client.request("GET", "/v1/ping")
  Types::Ping.from_hash(data)
end