Class: Inspec::Resources::Http::Worker::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec/resources/http.rb

Direct Known Subclasses

Local, Remote

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_method, url, opts) ⇒ Base

Returns a new instance of Base.



78
79
80
81
82
83
# File 'lib/inspec/resources/http.rb', line 78

def initialize(http_method, url, opts)
  @http_method = http_method
  @url = url
  @opts = opts
  @response = nil
end

Instance Attribute Details

#http_methodObject (readonly)

Returns the value of attribute http_method.



76
77
78
# File 'lib/inspec/resources/http.rb', line 76

def http_method
  @http_method
end

#optsObject (readonly)

Returns the value of attribute opts.



76
77
78
# File 'lib/inspec/resources/http.rb', line 76

def opts
  @opts
end

#urlObject (readonly)

Returns the value of attribute url.



76
77
78
# File 'lib/inspec/resources/http.rb', line 76

def url
  @url
end