class Floss::Log::Entry
Attributes
command[RW]
@return [Object] A replicated state machine command.
term[RW]
@return [Fixnum] When the entry was received by the leader.
Public Class Methods
new(command, term)
click to toggle source
# File lib/floss/log.rb, line 16 def initialize(command, term) raise ArgumentError, "Term must be a Fixnum." unless term.is_a?(Fixnum) self.term = term self.command = command end