Sha256: b0235a91d4f85db22daf1b890d146e3d1aeaeff52683e48fa5f545e7edb35d51
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
module Line module Bot module MessageBuilder class Message::Image < Message attr_accessor :original_content_url, :preview_image_url def initialize(original_content_url: nil, preview_image_url: nil) super 'image' do @original_content_url = original_content_url @preview_image_url = preview_image_url yield self if block_given? end end def self.required { 'type' => String, 'original_content_url' => String, 'preview_image_url' => 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/messages/image.rb |