Class: RSpec::Apib::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/apib/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


7
8
9
10
11
12
13
# File 'lib/rspec/apib/configuration.rb', line 7

def initialize
  self.pre_docs   = []
  self.post_docs  = []
  self.request_header_blacklist = %w(host accept cookie)
  self.request_param_blacklist  = %i(controller action)
  self.record_types = %i(request)
end

Instance Attribute Details

#dest_fileObject

Returns the value of attribute dest_file

Returns:

  • (Object)

    the current value of dest_file


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

def dest_file
  @dest_file
end

#post_docsObject

Returns the value of attribute post_docs

Returns:

  • (Object)

    the current value of post_docs


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

def post_docs
  @post_docs
end

#pre_docsObject

Returns the value of attribute pre_docs

Returns:

  • (Object)

    the current value of pre_docs


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

def pre_docs
  @pre_docs
end

#record_typesObject

Returns the value of attribute record_types

Returns:

  • (Object)

    the current value of record_types


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

def record_types
  @record_types
end

#request_header_blacklistObject

Returns the value of attribute request_header_blacklist

Returns:

  • (Object)

    the current value of request_header_blacklist


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

def request_header_blacklist
  @request_header_blacklist
end

#request_param_blacklistObject

Returns the value of attribute request_param_blacklist

Returns:

  • (Object)

    the current value of request_param_blacklist


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

def request_param_blacklist
  @request_param_blacklist
end