Class: Evinrude::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/evinrude/snapshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node_name:, state:, cluster_config:, cluster_config_index:, last_term:, last_index:, last_command_ids:) ⇒ Snapshot

Returns a new instance of Snapshot.



5
6
7
# File 'lib/evinrude/snapshot.rb', line 5

def initialize(node_name:, state:, cluster_config:, cluster_config_index:, last_term:, last_index:, last_command_ids:)
	@node_name, @state, @cluster_config, @cluster_config_index, @last_term, @last_index, @last_command_ids = node_name, state, cluster_config, cluster_config_index, last_term, last_index, last_command_ids
end

Instance Attribute Details

#cluster_configObject (readonly)

Returns the value of attribute cluster_config.



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

def cluster_config
  @cluster_config
end

#cluster_config_indexObject (readonly)

Returns the value of attribute cluster_config_index.



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

def cluster_config_index
  @cluster_config_index
end

#last_command_idsObject (readonly)

Returns the value of attribute last_command_ids.



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

def last_command_ids
  @last_command_ids
end

#last_indexObject (readonly)

Returns the value of attribute last_index.



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

def last_index
  @last_index
end

#last_termObject (readonly)

Returns the value of attribute last_term.



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

def last_term
  @last_term
end

#node_nameObject (readonly)

Returns the value of attribute node_name.



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

def node_name
  @node_name
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end