Class: Garage::Docs::Config::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/garage/docs/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Builder

Returns a new instance of Builder.



23
24
25
# File 'lib/garage/docs/config.rb', line 23

def initialize(config)
  @config = config
end

Instance Method Details

#authenticate(&block) ⇒ Object



35
36
37
# File 'lib/garage/docs/config.rb', line 35

def authenticate(&block)
  @config.authenticate = block
end

#console_app_secret=(value) ⇒ Object



43
44
45
# File 'lib/garage/docs/config.rb', line 43

def console_app_secret=(value)
  @config.console_app_secret = value
end

#console_app_uid=(value) ⇒ Object



39
40
41
# File 'lib/garage/docs/config.rb', line 39

def console_app_uid=(value)
  @config.console_app_uid = value
end

#current_user_method(&block) ⇒ Object



31
32
33
# File 'lib/garage/docs/config.rb', line 31

def current_user_method(&block)
  @config.current_user_method = block
end

#docs_authorization_method(&block) ⇒ Object



55
56
57
# File 'lib/garage/docs/config.rb', line 55

def docs_authorization_method(&block)
  @config.docs_authorization_method = block
end

#docs_cache_enabled=(value) ⇒ Object



51
52
53
# File 'lib/garage/docs/config.rb', line 51

def docs_cache_enabled=(value)
  @config.docs_cache_enabled = value
end

#document_root=(value) ⇒ Object



27
28
29
# File 'lib/garage/docs/config.rb', line 27

def document_root=(value)
  @config.document_root = value
end

#remote_server=(value) ⇒ Object



47
48
49
# File 'lib/garage/docs/config.rb', line 47

def remote_server=(value)
  @config.remote_server = value
end