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.
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
#allow ⇒ Object
Returns the value of attribute allow.
12 13 14 |
# File 'lib/webmock/config.rb', line 12 def allow @allow end |
#allow_localhost ⇒ Object
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_connect ⇒ Object
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_start ⇒ Object
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_notation ⇒ Object
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_diff ⇒ Object
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_instructions ⇒ Object
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 |