Class: Jaribio::RemoteObject
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Jaribio::RemoteObject
- Defined in:
- lib/jaribio/remote_object.rb
Class Method Summary collapse
- .configure(config) ⇒ Object
-
.query_string(options) ⇒ Object
Override query_string to automatically add the api_key.
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() = {} if .nil? [:api_key] = api_key unless api_key.nil? super() end |