Class: RxRuby::Recorded
- Inherits:
-
Struct
- Object
- Struct
- RxRuby::Recorded
- Defined in:
- lib/rx_ruby/testing/recorded.rb
Overview
Record of a value including the virtual time it was produced on.
Instance Attribute Summary collapse
-
#time ⇒ Object
Returns the value of attribute time.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(time, value) ⇒ Recorded
constructor
A new instance of Recorded.
- #to_s ⇒ Object
Constructor Details
#initialize(time, value) ⇒ Recorded
Returns a new instance of Recorded.
8 9 10 |
# File 'lib/rx_ruby/testing/recorded.rb', line 8 def initialize(time, value) super end |
Instance Attribute Details
#time ⇒ Object
Returns the value of attribute time
6 7 8 |
# File 'lib/rx_ruby/testing/recorded.rb', line 6 def time @time end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/rx_ruby/testing/recorded.rb', line 6 def value @value end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/rx_ruby/testing/recorded.rb', line 12 def to_s "#{value} @ #{time}" end |