Class: Cadenya::Types::UserMessage
- Inherits:
-
Object
- Object
- Cadenya::Types::UserMessage
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content: nil) ⇒ UserMessage
constructor
A new instance of UserMessage.
- #to_h ⇒ Object
Constructor Details
#initialize(content: nil) ⇒ UserMessage
Returns a new instance of UserMessage.
7133 7134 7135 |
# File 'lib/cadenya/types.rb', line 7133 def initialize(content: nil) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7131 7132 7133 |
# File 'lib/cadenya/types.rb', line 7131 def content @content end |
Class Method Details
.from_json(data) ⇒ Object
7137 7138 7139 7140 7141 |
# File 'lib/cadenya/types.rb', line 7137 def self.from_json(data) new( content: data["content"], ) end |