Class: RWB::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/rwb/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, timestamp, url, elapsed_time, response_code) ⇒ Result

Returns a new instance of Result.



7
8
9
10
11
12
13
# File 'lib/rwb/results.rb', line 7

def initialize(id, timestamp, url, elapsed_time, response_code)
  @id = id
  @timestamp = timestamp
  @url = url
  @elapsed_time = elapsed_time
  @response_code = response_code
end

Instance Attribute Details

#elapsed_timeObject (readonly)

Returns the value of attribute elapsed_time.



5
6
7
# File 'lib/rwb/results.rb', line 5

def elapsed_time
  @elapsed_time
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/rwb/results.rb', line 4

def id
  @id
end

#response_codeObject (readonly)

Returns the value of attribute response_code.



5
6
7
# File 'lib/rwb/results.rb', line 5

def response_code
  @response_code
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



4
5
6
# File 'lib/rwb/results.rb', line 4

def timestamp
  @timestamp
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/rwb/results.rb', line 4

def url
  @url
end