class Message

Rubbit Object

Object that represents a Personal Message

Public Class Methods

new(json) click to toggle source
# File lib/Rubbit/Rubbit_Objects.rb, line 650
def initialize(json)
        if(json['kind']=='t4')
                data = json['data']
                data.each_key do |k|
                        self.class.module_eval {attr_accessor(k)}
                        self.send("#{k}=",data[k])
                end
        end
end

Public Instance Methods

reply(text) click to toggle source

Description

Responds to an inbox message.

Attributes

  • text - The new message body.

# File lib/Rubbit/Rubbit_Objects.rb, line 668
def reply(text)
        return Rubbit_Poster.instance.comment(@name,text)
end