Class: LimitedRed::Adapter::HttParty
- Inherits:
-
Object
- Object
- LimitedRed::Adapter::HttParty
- Defined in:
- lib/limited_red/adapter/httparty.rb
Class Method Summary collapse
Class Method Details
.new(config, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/limited_red/adapter/httparty.rb', line 4 def self.new(config, = {}) services = {} services['rspec'] = 'https://limited-red-unit-data-service.heroku.com/' services['cucumber'] = 'https://limited-red-data-service.heroku.com/' host = config['host'] || services[config['type']] port = config['port'] || '' uri = "#{host}#{port == '' ? '' : ":#{port}"}" HttPartyAdapter.base_uri(uri) HttPartyAdapter end |