class BotPlatform::Activity
Constants
- TYPES
Attributes
channel_id[R]
content[R]
from[R]
options[R]
prefix[R]
preview_url[R]
resource_id[R]
resource_url[R]
text[R]
to[RW]
type[R]
Public Class Methods
new(type, opts={})
click to toggle source
# File lib/bot_platform/activity.rb, line 18 def initialize(type, opts={}) @type = type @resource_id = opts[:resource_id] @content = opts[:content] @options = opts[:options] @prefix = opts[:prefix] @text = opts[:text] @preview_url = opts[:preview_url] @resource_url = opts[:resource_url] @from = opts[:from] @to = opts[:to] @channel_id = opts[:channel_id] end