Class: Keisanjaku::ProcedureEvent
- Inherits:
-
Struct
- Object
- Struct
- Keisanjaku::ProcedureEvent
- Defined in:
- lib/keisanjaku/procedure.rb
Instance Attribute Summary collapse
-
#primitive ⇒ Object
Returns the value of attribute primitive.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#side ⇒ Object
Returns the value of attribute side.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#primitive ⇒ Object
Returns the value of attribute primitive
6 7 8 |
# File 'lib/keisanjaku/procedure.rb', line 6 def primitive @primitive end |
#scale ⇒ Object
Returns the value of attribute scale
6 7 8 |
# File 'lib/keisanjaku/procedure.rb', line 6 def scale @scale end |
#side ⇒ Object
Returns the value of attribute side
6 7 8 |
# File 'lib/keisanjaku/procedure.rb', line 6 def side @side end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/keisanjaku/procedure.rb', line 6 def value @value end |
Class Method Details
.from_step(step) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/keisanjaku/procedure.rb', line 7 def self.from_step(step) new( primitive: step.primitive, scale: step.scale&.to_s, value: step.value, side: step.side ) end |