Class: Evinrude::Snapshot
- Inherits:
-
Object
- Object
- Evinrude::Snapshot
- Defined in:
- lib/evinrude/snapshot.rb
Instance Attribute Summary collapse
-
#cluster_config ⇒ Object
readonly
Returns the value of attribute cluster_config.
-
#cluster_config_index ⇒ Object
readonly
Returns the value of attribute cluster_config_index.
-
#last_command_ids ⇒ Object
readonly
Returns the value of attribute last_command_ids.
-
#last_index ⇒ Object
readonly
Returns the value of attribute last_index.
-
#last_term ⇒ Object
readonly
Returns the value of attribute last_term.
-
#node_name ⇒ Object
readonly
Returns the value of attribute node_name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(node_name:, state:, cluster_config:, cluster_config_index:, last_term:, last_index:, last_command_ids:) ⇒ Snapshot
constructor
A new instance of Snapshot.
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_config ⇒ Object (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_index ⇒ Object (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_ids ⇒ Object (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_index ⇒ Object (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_term ⇒ Object (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_name ⇒ Object (readonly)
Returns the value of attribute node_name.
3 4 5 |
# File 'lib/evinrude/snapshot.rb', line 3 def node_name @node_name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/evinrude/snapshot.rb', line 3 def state @state end |