Class: Astronoby::ExtremumEvent
- Inherits:
-
Object
- Object
- Astronoby::ExtremumEvent
- Defined in:
- lib/astronoby/events/extremum_event.rb
Overview
Represents an extremum event with its timing and value
Instance Attribute Summary collapse
-
#instant ⇒ Object
readonly
Returns the value of attribute instant.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(instant, value) ⇒ ExtremumEvent
constructor
A new instance of ExtremumEvent.
Constructor Details
#initialize(instant, value) ⇒ ExtremumEvent
Returns a new instance of ExtremumEvent.
10 11 12 13 |
# File 'lib/astronoby/events/extremum_event.rb', line 10 def initialize(instant, value) @instant = instant @value = value end |
Instance Attribute Details
#instant ⇒ Object (readonly)
Returns the value of attribute instant.
6 7 8 |
# File 'lib/astronoby/events/extremum_event.rb', line 6 def instant @instant end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/astronoby/events/extremum_event.rb', line 6 def value @value end |