Module: Collins::Api::Util
- Includes:
- Parameters, Requests, Responses
- Included in:
- Collins::Api
- Defined in:
- lib/collins/api/util.rb,
lib/collins/api/util/errors.rb,
lib/collins/api/util/requests.rb,
lib/collins/api/util/responses.rb,
lib/collins/api/util/parameters.rb
Defined Under Namespace
Modules: Errors, Parameters, Requests, Responses
Instance Method Summary collapse
-
#ping ⇒ Object
returns true if successful ping to collins, false otherwise.
Instance Method Details
#ping ⇒ Object
returns true if successful ping to collins, false otherwise
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/collins/api/util.rb', line 15 def ping begin http_get("/api/ping") do |response| parse_response response, :expects => 200 end true rescue false end end |