Class: Line::Bot::Message::Text
- Inherits:
-
Base
- Object
- Hash
- Base
- Line::Bot::Message::Text
show all
- Defined in:
- lib/line/bot/message/text.rb
Instance Attribute Summary
Attributes inherited from Base
#recipient_type
Instance Method Summary
collapse
Methods inherited from Base
#event_type, #initialize
Instance Method Details
#content ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/line/bot/message/text.rb', line 5
def content
{
contentType: ContentType::TEXT,
toType: recipient_type,
text: self[:text]
}
end
|
#valid? ⇒ Boolean
13
14
15
|
# File 'lib/line/bot/message/text.rb', line 13
def valid?
!self[:text].nil?
end
|