Class: Arcp::Job::EventBody::Thought
- Inherits:
-
Data
- Object
- Data
- Arcp::Job::EventBody::Thought
- Defined in:
- lib/arcp/job/event_body/thought.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text
6 7 8 |
# File 'lib/arcp/job/event_body/thought.rb', line 6 def text @text end |
Class Method Details
.from_h(h) ⇒ Object
7 |
# File 'lib/arcp/job/event_body/thought.rb', line 7 def self.from_h(h) = new(text: h.transform_keys(&:to_s).fetch('text')) |
Instance Method Details
#to_h ⇒ Object
8 |
# File 'lib/arcp/job/event_body/thought.rb', line 8 def to_h = { 'text' => text } |