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.



7
8
9
10
# File 'lib/webmock/config.rb', line 7

def initialize
  @show_stubbing_instructions = true
  @show_body_diff = true
end

Instance Attribute Details

#allowObject

Returns the value of attribute allow.



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

def allow
  @allow
end

#allow_localhostObject

Returns the value of attribute allow_localhost.



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

def allow_localhost
  @allow_localhost
end

#allow_net_connectObject

Returns the value of attribute allow_net_connect.



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

def allow_net_connect
  @allow_net_connect
end

#net_http_connect_on_startObject

Returns the value of attribute net_http_connect_on_start.



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

def net_http_connect_on_start
  @net_http_connect_on_start
end

#query_values_notationObject

Returns the value of attribute query_values_notation.



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

def query_values_notation
  @query_values_notation
end

#show_body_diffObject

Returns the value of attribute show_body_diff.



18
19
20
# File 'lib/webmock/config.rb', line 18

def show_body_diff
  @show_body_diff
end

#show_stubbing_instructionsObject

Returns the value of attribute show_stubbing_instructions.



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

def show_stubbing_instructions
  @show_stubbing_instructions
end