Class: Avocado::Config
- Inherits:
-
Object
- Object
- Avocado::Config
- Defined in:
- lib/avocado/config.rb
Class Attribute Summary collapse
-
.document_if ⇒ Object
Returns the value of attribute document_if.
-
.headers ⇒ Object
Returns the value of attribute headers.
-
.ignored_params ⇒ Object
Returns the value of attribute ignored_params.
-
.json_path ⇒ Object
Returns the value of attribute json_path.
-
.url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Class Attribute Details
.document_if ⇒ Object
Returns the value of attribute document_if.
5 6 7 |
# File 'lib/avocado/config.rb', line 5 def document_if @document_if end |
.headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/avocado/config.rb', line 5 def headers @headers end |
.ignored_params ⇒ Object
Returns the value of attribute ignored_params.
5 6 7 |
# File 'lib/avocado/config.rb', line 5 def ignored_params @ignored_params end |
.json_path ⇒ Object
Returns the value of attribute json_path.
5 6 7 |
# File 'lib/avocado/config.rb', line 5 def json_path @json_path end |
.url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/avocado/config.rb', line 5 def url @url end |
Class Method Details
.configure {|_self| ... } ⇒ Object
7 8 9 |
# File 'lib/avocado/config.rb', line 7 def configure(&block) yield self end |
.reset! ⇒ Object
27 28 29 30 31 32 |
# File 'lib/avocado/config.rb', line 27 def reset! @headers = nil @document_if = nil @json_path = nil @ignored_params = nil end |