Class: Arcp::Session::Ack
- Inherits:
-
Data
- Object
- Data
- Arcp::Session::Ack
- Defined in:
- lib/arcp/session/ack.rb
Instance Attribute Summary collapse
-
#last_processed_seq ⇒ Object
readonly
Returns the value of attribute last_processed_seq.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#last_processed_seq ⇒ Object (readonly)
Returns the value of attribute last_processed_seq
5 6 7 |
# File 'lib/arcp/session/ack.rb', line 5 def last_processed_seq @last_processed_seq end |
Class Method Details
.from_h(h) ⇒ Object
6 7 8 9 |
# File 'lib/arcp/session/ack.rb', line 6 def self.from_h(h) h = h.transform_keys(&:to_s) new(last_processed_seq: h.fetch('last_processed_seq')) end |
Instance Method Details
#to_h ⇒ Object
11 |
# File 'lib/arcp/session/ack.rb', line 11 def to_h = { 'last_processed_seq' => last_processed_seq } |