Class: BooticClient::Configuration
- Inherits:
-
Object
- Object
- BooticClient::Configuration
- Defined in:
- lib/bootic_client/configuration.rb
Instance Attribute Summary collapse
-
#cache_store ⇒ Object
Returns the value of attribute cache_store.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#logging ⇒ Object
Returns the value of attribute logging.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
- #api_root ⇒ Object
- #api_root=(v) ⇒ Object
- #auth_host ⇒ Object
- #auth_host=(v) ⇒ Object
- #logger ⇒ Object
- #logger=(v) ⇒ Object
- #response_handlers ⇒ Object
Instance Attribute Details
#cache_store ⇒ Object
Returns the value of attribute cache_store.
12 13 14 |
# File 'lib/bootic_client/configuration.rb', line 12 def cache_store @cache_store end |
#client_id ⇒ Object
Returns the value of attribute client_id.
12 13 14 |
# File 'lib/bootic_client/configuration.rb', line 12 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
12 13 14 |
# File 'lib/bootic_client/configuration.rb', line 12 def client_secret @client_secret end |
#logging ⇒ Object
Returns the value of attribute logging.
11 12 13 |
# File 'lib/bootic_client/configuration.rb', line 11 def logging @logging end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
12 13 14 |
# File 'lib/bootic_client/configuration.rb', line 12 def user_agent @user_agent end |
Instance Method Details
#api_root ⇒ Object
48 49 50 |
# File 'lib/bootic_client/configuration.rb', line 48 def api_root @api_root || API_ROOT end |
#api_root=(v) ⇒ Object
35 36 37 38 |
# File 'lib/bootic_client/configuration.rb', line 35 def api_root=(v) check_url! :api_root, v set_non_nil :api_root, v end |
#auth_host ⇒ Object
44 45 46 |
# File 'lib/bootic_client/configuration.rb', line 44 def auth_host @auth_host || AUTH_HOST end |
#auth_host=(v) ⇒ Object
30 31 32 33 |
# File 'lib/bootic_client/configuration.rb', line 30 def auth_host=(v) check_url! :auth_host, v set_non_nil :auth_host, v end |
#logger ⇒ Object
52 53 54 |
# File 'lib/bootic_client/configuration.rb', line 52 def logger @logger || ::Logger.new(STDOUT) end |
#logger=(v) ⇒ Object
40 41 42 |
# File 'lib/bootic_client/configuration.rb', line 40 def logger=(v) set_non_nil :logger, v end |
#response_handlers ⇒ Object
56 57 58 59 60 61 |
# File 'lib/bootic_client/configuration.rb', line 56 def response_handlers @response_handlers ||= ResponseHandlers::Set.new([ ResponseHandlers::Hal, ResponseHandlers::File ]) end |