Sha256: 43e74f190bacde17ce91e73b787c33b442d3e7e2c1177147325268a80552bca9
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
module HostedSolr module API class Configuration attr_accessor :base_url, :api_token, :secret_token def initialize @base_url = 'https://www.hosted-solr.com/api' end def api_token @api_token = find_api_token end def secret_token @secret_token = find_secret_token end private def find_api_token @api_token || ENV['HOSTED_SOLR_API_TOKEN'] end def find_secret_token @secret_token || ENV['HOSTED_SOLR_SECRET_TOKEN'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hosted_solr-api-0.6.0 | lib/hosted_solr/api/configuration.rb |