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