class BlueprintAgreement::Configuration

Attributes

active_service[RW]
allow_headers[RW]
exclude_attributes[RW]
hostname[RW]
port[RW]
server_path[RW]

Public Class Methods

new() click to toggle source
# 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

Public Instance Methods

active_service?() click to toggle source
# File lib/blueprint_agreement/configuration.rb, line 19
def active_service?
  !!@active_service
end
allow_headers=(headers) click to toggle source
# File lib/blueprint_agreement/configuration.rb, line 23
def allow_headers=(headers)
  @allow_headers = headers.map { |header| "--header #{header}" }.join(" ")
end
default_format() click to toggle source
# File lib/blueprint_agreement/configuration.rb, line 27
def default_format
  '*.apib'
end