Class: Hyperlinked::Configuration
- Inherits:
-
Object
- Object
- Hyperlinked::Configuration
- Defined in:
- lib/hyperlinked/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.
11 12 13 |
# File 'lib/hyperlinked/configuration.rb', line 11 def cache_store @cache_store end |
#client_id ⇒ Object
Returns the value of attribute client_id.
11 12 13 |
# File 'lib/hyperlinked/configuration.rb', line 11 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
11 12 13 |
# File 'lib/hyperlinked/configuration.rb', line 11 def client_secret @client_secret end |
#logging ⇒ Object
Returns the value of attribute logging.
10 11 12 |
# File 'lib/hyperlinked/configuration.rb', line 10 def logging @logging end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
11 12 13 |
# File 'lib/hyperlinked/configuration.rb', line 11 def user_agent @user_agent end |
Instance Method Details
#api_root ⇒ Object
47 48 49 |
# File 'lib/hyperlinked/configuration.rb', line 47 def api_root @api_root end |
#api_root=(v) ⇒ Object
34 35 36 37 |
# File 'lib/hyperlinked/configuration.rb', line 34 def api_root=(v) check_url! :api_root, v set_non_nil :api_root, v end |
#auth_host ⇒ Object
43 44 45 |
# File 'lib/hyperlinked/configuration.rb', line 43 def auth_host @auth_host end |
#auth_host=(v) ⇒ Object
29 30 31 32 |
# File 'lib/hyperlinked/configuration.rb', line 29 def auth_host=(v) check_url! :auth_host, v set_non_nil :auth_host, v end |
#logger ⇒ Object
51 52 53 |
# File 'lib/hyperlinked/configuration.rb', line 51 def logger @logger || ::Logger.new(STDOUT) end |
#logger=(v) ⇒ Object
39 40 41 |
# File 'lib/hyperlinked/configuration.rb', line 39 def logger=(v) set_non_nil :logger, v end |
#response_handlers ⇒ Object
55 56 57 58 59 60 |
# File 'lib/hyperlinked/configuration.rb', line 55 def response_handlers @response_handlers ||= ResponseHandlers::Set.new([ ResponseHandlers::Hal, ResponseHandlers::File ]) end |