Module: BlueprintAgreement::Config
Constant Summary collapse
- @@active_service =
nil
- @@exclude_attributes =
nil
- @@allow_headers =
nil
- @@port =
"8082"
- @@hostname =
"http://localhost"
Instance Method Summary collapse
- #active_service ⇒ Object
- #active_service=(active_service) ⇒ Object
- #active_service? ⇒ Boolean
- #allow_headers ⇒ Object
- #allow_headers=(headers) ⇒ Object
- #configure {|_self| ... } ⇒ Object
- #default_format ⇒ Object
- #exclude_attributes ⇒ Object
- #exclude_attributes=(exclude_attributes) ⇒ Object
- #hostname ⇒ Object
- #hostname=(host) ⇒ Object
- #port ⇒ Object
- #port=(port) ⇒ Object
- #server_path(path = './docs') ⇒ Object
- #server_path=(server_path) ⇒ Object
Instance Method Details
#active_service ⇒ Object
32 33 34 |
# File 'lib/blueprint_agreement/config.rb', line 32 def active_service @@active_service end |
#active_service=(active_service) ⇒ Object
28 29 30 |
# File 'lib/blueprint_agreement/config.rb', line 28 def active_service=(active_service) @@active_service = active_service end |
#active_service? ⇒ Boolean
24 25 26 |
# File 'lib/blueprint_agreement/config.rb', line 24 def active_service? !!@@active_service end |
#allow_headers ⇒ Object
44 45 46 |
# File 'lib/blueprint_agreement/config.rb', line 44 def allow_headers @@allow_headers end |
#allow_headers=(headers) ⇒ Object
40 41 42 |
# File 'lib/blueprint_agreement/config.rb', line 40 def allow_headers=(headers) @@allow_headers = headers.map { |header| "--header #{header}" }.join(" ") end |
#configure {|_self| ... } ⇒ Object
10 |
# File 'lib/blueprint_agreement/config.rb', line 10 def configure; yield self end |
#default_format ⇒ Object
48 49 50 |
# File 'lib/blueprint_agreement/config.rb', line 48 def default_format '*.apib' end |
#exclude_attributes ⇒ Object
64 65 66 |
# File 'lib/blueprint_agreement/config.rb', line 64 def exclude_attributes @@exclude_attributes end |
#exclude_attributes=(exclude_attributes) ⇒ Object
20 21 22 |
# File 'lib/blueprint_agreement/config.rb', line 20 def exclude_attributes=(exclude_attributes) @@exclude_attributes = exclude_attributes end |
#hostname ⇒ Object
56 57 58 |
# File 'lib/blueprint_agreement/config.rb', line 56 def hostname @@hostname end |
#hostname=(host) ⇒ Object
60 61 62 |
# File 'lib/blueprint_agreement/config.rb', line 60 def hostname=(host) @@hostname = host end |
#port ⇒ Object
52 53 54 |
# File 'lib/blueprint_agreement/config.rb', line 52 def port @@port end |
#port=(port) ⇒ Object
12 13 14 |
# File 'lib/blueprint_agreement/config.rb', line 12 def port=(port) @@port = port end |
#server_path(path = './docs') ⇒ Object
36 37 38 |
# File 'lib/blueprint_agreement/config.rb', line 36 def server_path(path = './docs') @server_path ||= path end |
#server_path=(server_path) ⇒ Object
16 17 18 |
# File 'lib/blueprint_agreement/config.rb', line 16 def server_path=(server_path) @server_path = server_path end |