Class: WebMock::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/webmock/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



5
6
7
8
# File 'lib/webmock/config.rb', line 5

def initialize
  @show_stubbing_instructions = true
  @show_body_diff = true
end

Instance Attribute Details

#allowObject

Returns the value of attribute allow.



12
13
14
# File 'lib/webmock/config.rb', line 12

def allow
  @allow
end

#allow_localhostObject

Returns the value of attribute allow_localhost.



11
12
13
# File 'lib/webmock/config.rb', line 11

def allow_localhost
  @allow_localhost
end

#allow_net_connectObject

Returns the value of attribute allow_net_connect.



10
11
12
# File 'lib/webmock/config.rb', line 10

def allow_net_connect
  @allow_net_connect
end

#net_http_connect_on_startObject

Returns the value of attribute net_http_connect_on_start.



13
14
15
# File 'lib/webmock/config.rb', line 13

def net_http_connect_on_start
  @net_http_connect_on_start
end

#query_values_notationObject

Returns the value of attribute query_values_notation.



15
16
17
# File 'lib/webmock/config.rb', line 15

def query_values_notation
  @query_values_notation
end

#show_body_diffObject

Returns the value of attribute show_body_diff.



16
17
18
# File 'lib/webmock/config.rb', line 16

def show_body_diff
  @show_body_diff
end

#show_stubbing_instructionsObject

Returns the value of attribute show_stubbing_instructions.



14
15
16
# File 'lib/webmock/config.rb', line 14

def show_stubbing_instructions
  @show_stubbing_instructions
end