class Messages::AttachmentClass

Attributes

short[RW]
title[RW]
value[RW]

Public Class Methods

new() click to toggle source
# File lib/yellowant/message/attachment_class.rb, line 5
def initialize 
        @title = ''
        @short = 0
        @value = ''
end

Public Instance Methods

get_dict() click to toggle source
# File lib/yellowant/message/attachment_class.rb, line 11
def get_dict
        if !short.is_a? Integer
                raise YellowantExceptions::YellowAntError, ":short must be an integer"
        else
                {"title"=>@title, "short"=>@short, "value" => @value}
        end
end