Class: BlueprintAgreement::Configuration
- Inherits:
-
Object
- Object
- BlueprintAgreement::Configuration
- Defined in:
- lib/blueprint_agreement/configuration.rb
Instance Attribute Summary collapse
-
#active_service ⇒ Object
Returns the value of attribute active_service.
-
#allow_headers ⇒ Object
Returns the value of attribute allow_headers.
-
#exclude_attributes ⇒ Object
Returns the value of attribute exclude_attributes.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#port ⇒ Object
Returns the value of attribute port.
-
#server_path ⇒ Object
Returns the value of attribute server_path.
Instance Method Summary collapse
- #active_service? ⇒ Boolean
- #default_format ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 |
# File 'lib/blueprint_agreement/configuration.rb', line 10 def initialize @active_service = nil @exclude_attributes = nil @allow_headers = nil @port = "8082" @hostname = "http://localhost" @server_path = './docs' end |
Instance Attribute Details
#active_service ⇒ Object
Returns the value of attribute active_service.
3 4 5 |
# File 'lib/blueprint_agreement/configuration.rb', line 3 def active_service @active_service end |
#allow_headers ⇒ Object
Returns the value of attribute allow_headers.
3 4 5 |
# File 'lib/blueprint_agreement/configuration.rb', line 3 def allow_headers @allow_headers end |
#exclude_attributes ⇒ Object
Returns the value of attribute exclude_attributes.
3 4 5 |
# File 'lib/blueprint_agreement/configuration.rb', line 3 def exclude_attributes @exclude_attributes end |
#hostname ⇒ Object
Returns the value of attribute hostname.
3 4 5 |
# File 'lib/blueprint_agreement/configuration.rb', line 3 def hostname @hostname end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/blueprint_agreement/configuration.rb', line 3 def port @port end |
#server_path ⇒ Object
Returns the value of attribute server_path.
3 4 5 |
# File 'lib/blueprint_agreement/configuration.rb', line 3 def server_path @server_path end |
Instance Method Details
#active_service? ⇒ Boolean
19 20 21 |
# File 'lib/blueprint_agreement/configuration.rb', line 19 def active_service? !!@active_service end |
#default_format ⇒ Object
27 28 29 |
# File 'lib/blueprint_agreement/configuration.rb', line 27 def default_format '*.apib' end |