class Cleo::Base
Public Class Methods
async?()
click to toggle source
# File lib/cleo/base_server.rb, line 11 def self.async? async == true end
auto_flush?()
click to toggle source
# File lib/cleo/base_server.rb, line 15 def self.auto_flush? auto_flush == true end
good_response_code?(response)
click to toggle source
# File lib/cleo/base_server.rb, line 19 def self.good_response_code?(response) case response when Net::HTTPOK true # success response when Net::HTTPClientError, Net::HTTPInternalServerError false # non-success response end end