Class: WebMock::Config
- Inherits:
-
Object
- Object
- WebMock::Config
- Includes:
- Singleton
- Defined in:
- lib/webmock/config.rb
Instance Attribute Summary collapse
-
#allow ⇒ Object
Returns the value of attribute allow.
-
#allow_localhost ⇒ Object
Returns the value of attribute allow_localhost.
-
#allow_net_connect ⇒ Object
Returns the value of attribute allow_net_connect.
-
#net_http_connect_on_start ⇒ Object
Returns the value of attribute net_http_connect_on_start.
-
#query_values_notation ⇒ Object
Returns the value of attribute query_values_notation.
-
#show_body_diff ⇒ Object
Returns the value of attribute show_body_diff.
-
#show_stubbing_instructions ⇒ Object
Returns the value of attribute show_stubbing_instructions.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#allow ⇒ Object
Returns the value of attribute allow.
14 15 16 |
# File 'lib/webmock/config.rb', line 14 def allow @allow end |
#allow_localhost ⇒ Object
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_connect ⇒ Object
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_start ⇒ Object
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_notation ⇒ Object
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_diff ⇒ Object
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_instructions ⇒ Object
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 |