Class: Avocado::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/avocado/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.document_ifObject

Returns the value of attribute document_if.



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

def document_if
  @document_if
end

.headersObject

Returns the value of attribute headers.



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

def headers
  @headers
end

.ignored_paramsObject

Returns the value of attribute ignored_params.



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

def ignored_params
  @ignored_params
end

.json_pathObject

Returns the value of attribute json_path.



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

def json_path
  @json_path
end

.urlObject

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

Yields:

  • (_self)

Yield Parameters:



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