module TheCaptain
Constants
- VERSION
Attributes
connect_timeout[RW]
enabled[RW]
read_timeout[RW]
write_timeout[RW]
Public Class Methods
api_key()
click to toggle source
# File lib/the_captain.rb, line 51 def api_key @api_key ||= configuration.api_key.to_s.strip end
api_url()
click to toggle source
# File lib/the_captain.rb, line 55 def api_url @api_url ||= configuration.api_url.to_s.strip.chomp("/") end
configuration()
click to toggle source
# File lib/the_captain.rb, line 47 def configuration @configuration ||= Utility::Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/the_captain.rb, line 43 def configure yield configuration end
enabled?()
click to toggle source
# File lib/the_captain.rb, line 39 def enabled? @enabled end
raise_http_errors?()
click to toggle source
# File lib/the_captain.rb, line 63 def raise_http_errors? @raise_http_errors ||= configuration.raise_http_errors end
retry_attempts()
click to toggle source
# File lib/the_captain.rb, line 59 def retry_attempts @retry_attempts ||= configuration.retry_attempts.to_i end