Class: BlueprintAgreement::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/blueprint_agreement/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_serviceObject

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_headersObject

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_attributesObject

Returns the value of attribute exclude_attributes.



3
4
5
# File 'lib/blueprint_agreement/configuration.rb', line 3

def exclude_attributes
  @exclude_attributes
end

#hostnameObject

Returns the value of attribute hostname.



3
4
5
# File 'lib/blueprint_agreement/configuration.rb', line 3

def hostname
  @hostname
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/blueprint_agreement/configuration.rb', line 3

def port
  @port
end

#server_pathObject

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

Returns:

  • (Boolean)


19
20
21
# File 'lib/blueprint_agreement/configuration.rb', line 19

def active_service?
  !!@active_service
end

#default_formatObject



27
28
29
# File 'lib/blueprint_agreement/configuration.rb', line 27

def default_format
  '*.apib'
end