Class: Blitz::Traceroute::Result
- Inherits:
-
Object
- Object
- Blitz::Traceroute::Result
- Defined in:
- lib/blitz/traceroute.rb
Instance Attribute Summary collapse
-
#hops ⇒ Object
readonly
The timeline of the rush containing various statistics.
-
#region ⇒ Object
readonly
The region from which the traceroute was executed.
Instance Method Summary collapse
-
#initialize(json) ⇒ Result
constructor
:nodoc:.
Constructor Details
#initialize(json) ⇒ Result
:nodoc:
10 11 12 13 14 |
# File 'lib/blitz/traceroute.rb', line 10 def initialize json # :nodoc: result = json['result'] @region = result['region'] @hops = result['hops'] end |
Instance Attribute Details
#hops ⇒ Object (readonly)
The timeline of the rush containing various statistics.
8 9 10 |
# File 'lib/blitz/traceroute.rb', line 8 def hops @hops end |
#region ⇒ Object (readonly)
The region from which the traceroute was executed
5 6 7 |
# File 'lib/blitz/traceroute.rb', line 5 def region @region end |