Class: Foobara::StateMachine::LogEntry
- Inherits:
-
Object
- Object
- Foobara::StateMachine::LogEntry
- Defined in:
- foobara-0.0.110/projects/state_machine/src/log_entry.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
-
#transition ⇒ Object
Returns the value of attribute transition.
Instance Method Summary collapse
-
#initialize(from:, transition:, to:) ⇒ LogEntry
constructor
A new instance of LogEntry.
Constructor Details
#initialize(from:, transition:, to:) ⇒ LogEntry
Returns a new instance of LogEntry.
6 7 8 9 10 |
# File 'foobara-0.0.110/projects/state_machine/src/log_entry.rb', line 6 def initialize(from:, transition:, to:) self.from = from self.transition = transition self.to = to end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'foobara-0.0.110/projects/state_machine/src/log_entry.rb', line 4 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
4 5 6 |
# File 'foobara-0.0.110/projects/state_machine/src/log_entry.rb', line 4 def to @to end |
#transition ⇒ Object
Returns the value of attribute transition.
4 5 6 |
# File 'foobara-0.0.110/projects/state_machine/src/log_entry.rb', line 4 def transition @transition end |