Class: Blitz::Curl::Rush::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/blitz/curl/rush.rb

Overview

Represents the results returned by the rush. Contains the entire timeline of snapshot values from the rush as well as the region from which the rush was executed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Result

:nodoc:



90
91
92
93
94
# File 'lib/blitz/curl/rush.rb', line 90

def initialize json # :nodoc:
    result = json['result']
    @region = result['region']
    @timeline = result['timeline'].map { |p| Point.new p }
end

Instance Attribute Details

#regionObject (readonly)

The region from which the rush was executed



85
86
87
# File 'lib/blitz/curl/rush.rb', line 85

def region
  @region
end

#timelineObject (readonly)

The timeline of the rush containing various statistics.



88
89
90
# File 'lib/blitz/curl/rush.rb', line 88

def timeline
  @timeline
end