support/ruby/collins-client/lib/collins/api/util.rb
def ping
      begin
        http_get("/api/ping") do |response|
          parse_response response, :expects => 200
        end
        true
      rescue
        false
      end
    end
#returns true if successful ping to collins, false otherwise
returns true if successful ping to collins, false otherwise
returns true if successful ping to collins false otherwise
def ping
      begin
        http_get("/api/ping") do |response|
          parse_response response, :expects => 200
        end
        true
      rescue
        false
      end
    end
def ping begin http_get ( "/api/ping" ) do | response | parse_response response , :expects => 200 end true rescue false end end
returns true if successful ping to collins, false otherwise
returns true if successful ping to collins false otherwise