Class: Evinrude::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/evinrude/log_entry.rb,
lib/evinrude/log_entry/null.rb,
lib/evinrude/log_entry/cluster_configuration.rb,
lib/evinrude/log_entry/state_machine_command.rb

Direct Known Subclasses

ClusterConfiguration, Null, StateMachineCommand

Defined Under Namespace

Classes: ClusterConfiguration, Null, StateMachineCommand

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(term:) ⇒ LogEntry

Returns a new instance of LogEntry.



9
10
11
# File 'lib/evinrude/log_entry.rb', line 9

def initialize(term:)
	@term = term
end

Instance Attribute Details

#termObject (readonly)

Returns the value of attribute term.



7
8
9
# File 'lib/evinrude/log_entry.rb', line 7

def term
  @term
end

Class Method Details

.classesObject



3
4
5
# File 'lib/evinrude/log_entry.rb', line 3

def self.classes
	Evinrude::LogEntry.constants.map { |c| Evinrude::LogEntry.const_get(c) }.select { |c| Class === c }
end