Sha256: 498aebbc9c9165b834da50b1bc1b53e1fc1936f087a3ce06c165cba9648c8888

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

require 'miu/resources'
require 'miu/messages/base'

module Miu
  module Messages
    class Text < Base
      def initialize(options = {})
        options[:type] ||= 'text'
        options[:content] = Miu::Utility.adapt(Resources::TextContent, options[:content] || {})
        super 
      end
    end

    register :text, Text
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miu-0.2.3 lib/miu/messages/text.rb
miu-0.2.2 lib/miu/messages/text.rb
miu-0.2.1 lib/miu/messages/text.rb
miu-0.2.0 lib/miu/messages/text.rb