Class: Foobara::StateMachine::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
foobara-0.0.110/projects/state_machine/src/log_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fromObject

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

#toObject

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

#transitionObject

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