Sha256: 3beecfedaa16a120dacda734be639bba41a7b5c096f023f9342e9bebc3e8e7c8
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
require 'miu/resources' module Miu module Resources class TextContent < Content attr_accessor :room, :user, :text def initialize(options = {}) @room = Miu::Utility.adapt(Room, options[:room] || {}) @user = Miu::Utility.adapt(User, options[:user] || {}) @text = options[:text] super options end def to_h super.merge({ :room => @room.to_h, :user => @user.to_h, :text => @text }) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
miu-0.2.3 | lib/miu/resources/text_content.rb |
miu-0.2.2 | lib/miu/resources/text_content.rb |
miu-0.2.1 | lib/miu/resources/text_content.rb |