Class: TxghQueue::Backends::Sqs::MessageAttributes
- Inherits:
-
Object
- Object
- TxghQueue::Backends::Sqs::MessageAttributes
- Defined in:
- lib/txgh-queue/backends/sqs/message_attributes.rb
Instance Attribute Summary collapse
-
#history_sequence ⇒ Object
readonly
Returns the value of attribute history_sequence.
Class Method Summary collapse
Instance Method Summary collapse
- #dup ⇒ Object
-
#initialize(history_sequence) ⇒ MessageAttributes
constructor
A new instance of MessageAttributes.
- #to_h ⇒ Object
Constructor Details
#initialize(history_sequence) ⇒ MessageAttributes
Returns a new instance of MessageAttributes.
19 20 21 |
# File 'lib/txgh-queue/backends/sqs/message_attributes.rb', line 19 def initialize(history_sequence) @history_sequence = history_sequence end |
Instance Attribute Details
#history_sequence ⇒ Object (readonly)
Returns the value of attribute history_sequence.
17 18 19 |
# File 'lib/txgh-queue/backends/sqs/message_attributes.rb', line 17 def history_sequence @history_sequence end |
Class Method Details
.from_h(hash) ⇒ Object
11 12 13 14 |
# File 'lib/txgh-queue/backends/sqs/message_attributes.rb', line 11 def from_h(hash) history_sequence = HistorySequence.from_h(hash) new(history_sequence) end |
.from_message(message) ⇒ Object
6 7 8 9 |
# File 'lib/txgh-queue/backends/sqs/message_attributes.rb', line 6 def () history_sequence = HistorySequence.() new(history_sequence) end |
Instance Method Details
#dup ⇒ Object
27 28 29 |
# File 'lib/txgh-queue/backends/sqs/message_attributes.rb', line 27 def dup self.class.new(history_sequence.dup) end |
#to_h ⇒ Object
23 24 25 |
# File 'lib/txgh-queue/backends/sqs/message_attributes.rb', line 23 def to_h { history_sequence: history_sequence.to_h } end |