Class: Harnex::Message
- Inherits:
-
Struct
- Object
- Struct
- Harnex::Message
- Defined in:
- lib/harnex/runtime/message.rb
Instance Attribute Summary collapse
-
#delivered_at ⇒ Object
Returns the value of attribute delivered_at.
-
#enter_only ⇒ Object
Returns the value of attribute enter_only.
-
#error ⇒ Object
Returns the value of attribute error.
-
#force ⇒ Object
Returns the value of attribute force.
-
#id ⇒ Object
Returns the value of attribute id.
-
#queued_at ⇒ Object
Returns the value of attribute queued_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#submit ⇒ Object
Returns the value of attribute submit.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#delivered_at ⇒ Object
Returns the value of attribute delivered_at
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def delivered_at @delivered_at end |
#enter_only ⇒ Object
Returns the value of attribute enter_only
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def enter_only @enter_only end |
#error ⇒ Object
Returns the value of attribute error
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def error @error end |
#force ⇒ Object
Returns the value of attribute force
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def force @force end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def id @id end |
#queued_at ⇒ Object
Returns the value of attribute queued_at
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def queued_at @queued_at end |
#status ⇒ Object
Returns the value of attribute status
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def status @status end |
#submit ⇒ Object
Returns the value of attribute submit
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def submit @submit end |
#text ⇒ Object
Returns the value of attribute text
2 3 4 |
# File 'lib/harnex/runtime/message.rb', line 2 def text @text end |
Instance Method Details
#to_h ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/harnex/runtime/message.rb', line 3 def to_h { id: id, status: status.to_s, queued_at: queued_at&.iso8601, delivered_at: delivered_at&.iso8601, text_preview: preview_text, error: error } end |