Class: Stride::BotMention::TextBlock

Inherits:
ContentBlock show all
Defined in:
lib/stride/bot_mention.rb

Instance Method Summary collapse

Methods inherited from ContentBlock

factory, #initialize, #mention?, #type, wrap

Constructor Details

This class inherits a constructor from Stride::BotMention::ContentBlock

Instance Method Details

#textObject



76
77
78
# File 'lib/stride/bot_mention.rb', line 76

def text
  json['text']
end

#text?Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/stride/bot_mention.rb', line 80

def text?
  true
end