Class: RWB::Result
- Inherits:
-
Object
- Object
- RWB::Result
- Defined in:
- lib/rwb/results.rb
Instance Attribute Summary collapse
-
#elapsed_time ⇒ Object
readonly
Returns the value of attribute elapsed_time.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id, timestamp, url, elapsed_time, response_code) ⇒ Result
constructor
A new instance of Result.
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, , url, elapsed_time, response_code) @id = id @timestamp = @url = url @elapsed_time = elapsed_time @response_code = response_code end |
Instance Attribute Details
#elapsed_time ⇒ Object (readonly)
Returns the value of attribute elapsed_time.
5 6 7 |
# File 'lib/rwb/results.rb', line 5 def elapsed_time @elapsed_time end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/rwb/results.rb', line 4 def id @id end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
5 6 7 |
# File 'lib/rwb/results.rb', line 5 def response_code @response_code end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/rwb/results.rb', line 4 def @timestamp end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/rwb/results.rb', line 4 def url @url end |