class EMG::SMS

  1. mgp.rb
Superclass: Object

This class represents a message.

Methods

Public Class

  1. new

Public Instance

  1. messageid
  2. options

Attributes

options [RW]

Public Class methods

new (options = nil)
[show source]
# File mgp.rb, line 20
def initialize(options = nil)
        @options = {}
        unless options.nil?
                options = [ options ] unless options.instance_of?(Array)
                options.each {|h| h.each {|k,v| @options[k] = v } }
        end
end

Public Instance methods

messageid ()

Shortcut to get the message id from the option list.

[show source]
# File mgp.rb, line 29
def messageid
        @options[MGP::OPTION_ID]
end