Module: NucleoClient::ServiceConfiguration
- Included in:
- Federation, School
- Defined in:
- lib/nucleo_client/service_configuration.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/nucleo_client/service_configuration.rb', line 3 def self.included(base) base.send('use_hydra', NucleoClient::HYDRA) host = case ENV['RACK_ENV'] when 'development' NucleoClient::HOST when 'production' 'metododerose.org/nucleo_api' end base.send('set_resource_host', host) base.send('configure_index_response', {collection: 'collection', total: 'total'}) base.send('set_api_key','api_key',ENV['nucleo_api_key']) end |