Class: Trebuchet::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/trebuchet/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(siege_result) ⇒ Parser

Returns a new instance of Parser.



4
5
6
# File 'lib/trebuchet/parser.rb', line 4

def initialize siege_result
  parse siege_result
end

Instance Attribute Details

#failed_requestsObject (readonly)

Returns the value of attribute failed_requests.



3
4
5
# File 'lib/trebuchet/parser.rb', line 3

def failed_requests
  @failed_requests
end

#requestsObject (readonly)

Returns the value of attribute requests.



3
4
5
# File 'lib/trebuchet/parser.rb', line 3

def requests
  @requests
end

#rpsObject (readonly)

Returns the value of attribute rps.



3
4
5
# File 'lib/trebuchet/parser.rb', line 3

def rps
  @rps
end