Class: Cartography::AcceptanceResult::Check
- Inherits:
-
Object
- Object
- Cartography::AcceptanceResult::Check
- Defined in:
- lib/cartography/acceptance.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#dns ⇒ Object
readonly
Returns the value of attribute dns.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#http ⇒ Object
readonly
Returns the value of attribute http.
-
#skipped ⇒ Object
readonly
Returns the value of attribute skipped.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Check
constructor
A new instance of Check.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def address @address end |
#dns ⇒ Object (readonly)
Returns the value of attribute dns.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def dns @dns end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def duration @duration end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def error @error end |
#http ⇒ Object (readonly)
Returns the value of attribute http.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def http @http end |
#skipped ⇒ Object (readonly)
Returns the value of attribute skipped.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def skipped @skipped end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
17 18 19 |
# File 'lib/cartography/acceptance.rb', line 17 def success @success end |