Class: Garage::Docs::Config::Builder
- Inherits:
-
Object
- Object
- Garage::Docs::Config::Builder
- Defined in:
- lib/garage/docs/config.rb
Instance Method Summary collapse
- #authenticate(&block) ⇒ Object
- #console_app_secret=(value) ⇒ Object
- #console_app_uid=(value) ⇒ Object
- #current_user_method(&block) ⇒ Object
- #docs_authorization_method(&block) ⇒ Object
- #docs_cache_enabled=(value) ⇒ Object
- #document_root=(value) ⇒ Object
-
#initialize(config) ⇒ Builder
constructor
A new instance of Builder.
- #remote_server=(value) ⇒ Object
- #signout_path=(value) ⇒ Object
- #signout_request_method=(value) ⇒ Object
Constructor Details
#initialize(config) ⇒ Builder
Returns a new instance of Builder.
26 27 28 |
# File 'lib/garage/docs/config.rb', line 26 def initialize(config) @config = config end |
Instance Method Details
#authenticate(&block) ⇒ Object
38 39 40 |
# File 'lib/garage/docs/config.rb', line 38 def authenticate(&block) @config.authenticate = block end |
#console_app_secret=(value) ⇒ Object
46 47 48 |
# File 'lib/garage/docs/config.rb', line 46 def console_app_secret=(value) @config.console_app_secret = value end |
#console_app_uid=(value) ⇒ Object
42 43 44 |
# File 'lib/garage/docs/config.rb', line 42 def console_app_uid=(value) @config.console_app_uid = value end |
#current_user_method(&block) ⇒ Object
34 35 36 |
# File 'lib/garage/docs/config.rb', line 34 def current_user_method(&block) @config.current_user_method = block end |
#docs_authorization_method(&block) ⇒ Object
58 59 60 |
# File 'lib/garage/docs/config.rb', line 58 def (&block) @config. = block end |
#docs_cache_enabled=(value) ⇒ Object
54 55 56 |
# File 'lib/garage/docs/config.rb', line 54 def docs_cache_enabled=(value) @config.docs_cache_enabled = value end |
#document_root=(value) ⇒ Object
30 31 32 |
# File 'lib/garage/docs/config.rb', line 30 def document_root=(value) @config.document_root = value end |
#remote_server=(value) ⇒ Object
50 51 52 |
# File 'lib/garage/docs/config.rb', line 50 def remote_server=(value) @config.remote_server = value end |
#signout_path=(value) ⇒ Object
62 63 64 |
# File 'lib/garage/docs/config.rb', line 62 def signout_path=(value) @config.signout_path = value end |
#signout_request_method=(value) ⇒ Object
66 67 68 |
# File 'lib/garage/docs/config.rb', line 66 def signout_request_method=(value) @config.signout_request_method = value.to_sym end |