Class: Rafflesia::SequenceSeedIndexWalRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexWalRecord
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_wal_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ created_at: :created_at, header: :header, operation: :operation, sequence: :sequence, sequence_id: :sequence_id }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#header ⇒ Object
Returns the value of attribute header.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#sequence_id ⇒ Object
Returns the value of attribute sequence_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexWalRecord
constructor
A new instance of SequenceSeedIndexWalRecord.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexWalRecord
Returns a new instance of SequenceSeedIndexWalRecord.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_record.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @created_at = hash[:created_at] @header = hash[:header] @operation = hash[:operation] @sequence = hash[:sequence] @sequence_id = hash[:sequence_id] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_record.rb', line 16 def created_at @created_at end |
#header ⇒ Object
Returns the value of attribute header.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_record.rb', line 16 def header @header end |
#operation ⇒ Object
Returns the value of attribute operation.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_record.rb', line 16 def operation @operation end |
#sequence ⇒ Object
Returns the value of attribute sequence.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_record.rb', line 16 def sequence @sequence end |
#sequence_id ⇒ Object
Returns the value of attribute sequence_id.
16 17 18 |
# File 'lib/rafflesia/sequences/sequence_seed_index_wal_record.rb', line 16 def sequence_id @sequence_id end |