Method: Trello.http_client=
- Defined in:
- lib/trello.rb
.http_client=(http_client) ⇒ Object
150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/trello.rb', line 150 def self.http_client=(http_client) if HTTP_CLIENTS.include?(http_client) begin require http_client @http_client = HTTP_CLIENTS[http_client] rescue LoadError raise ConfigurationError, "Trello tried to use #{http_client}, but that gem is not installed" end else raise ArgumentError, "Unsupported HTTP client: #{http_client}" end end |