Class: Cartography::AcceptanceResult::Check

Inherits:
Object
  • Object
show all
Defined in:
lib/cartography/acceptance.rb

Defined Under Namespace

Classes: Address, DNS, HTTP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Check

Returns a new instance of Check.



25
26
27
28
29
30
31
32
33
# File 'lib/cartography/acceptance.rb', line 25

def initialize(params = {})
  @address = params["Address"] && Address.new(params["Address"])
  @dns = params["DNS"] && DNS.new(params["DNS"])
  @duration = params["Duration"].to_i
  @error = params["Error"]
  @http = params["HTTP"] && HTTP.new(params["HTTP"])
  @skipped = params["Skipped"]
  @success = params["Success"]
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def address
  @address
end

#dnsObject (readonly)

Returns the value of attribute dns.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def dns
  @dns
end

#durationObject (readonly)

Returns the value of attribute duration.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def duration
  @duration
end

#errorObject (readonly)

Returns the value of attribute error.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def error
  @error
end

#httpObject (readonly)

Returns the value of attribute http.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def http
  @http
end

#skippedObject (readonly)

Returns the value of attribute skipped.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def skipped
  @skipped
end

#successObject (readonly)

Returns the value of attribute success.



17
18
19
# File 'lib/cartography/acceptance.rb', line 17

def success
  @success
end