Sha256: c4b29c176ded1bbdb4e55d233a6c92860f99834b29c60beae5e7336de8bb5c7e
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
module Line module Bot module MessageBuilder class Action::Message < Action attr_accessor :label, :text def initialize(label: nil, text: nil) super 'message' do @label = label @text = text yield self if block_given? end end def self.required { 'type' => String, 'label' => String, 'text' => String } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
line-bot-message-builder-0.1.2 | lib/line/bot/message_builder/actions/message.rb |