Class: Jaribio::RemoteObject

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/jaribio/remote_object.rb

Direct Known Subclasses

Execution, Plan, TestCase

Class Method Summary collapse

Class Method Details

.configure(config) ⇒ Object



19
20
21
22
23
24
# File 'lib/jaribio/remote_object.rb', line 19

def configure(config)
  self.site = config.jaribio_url
  self.api_key = config.jaribio_api_key
  # set timeout (does not affect DNS lookups generally)
  self.timeout = config.jaribio_timeout
end

.query_string(options) ⇒ Object

Override query_string to automatically add the api_key



13
14
15
16
17
# File 'lib/jaribio/remote_object.rb', line 13

def query_string(options)
  options = {} if options.nil?
  options[:api_key] = api_key unless api_key.nil?
  super(options)
end