Class: Ucp::Util::GsmPackedMsg

Inherits:
PackedMsg show all
Defined in:
lib/ucp/util/gsm_packed_msg.rb

Overview

Ruby library implementation of EMI/UCP protocol v4.6 for SMS Copyright © 2011, Sergio Freire <[email protected]>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Instance Attribute Summary

Attributes inherited from PackedMsg

#chars, #encoded, #required_octets, #required_septets, #tainted, #unencoded

Instance Method Summary collapse

Constructor Details

#initialize(encoded, unencoded, chars, required_septets, tainted = false) ⇒ GsmPackedMsg

@part_nr=nil

@total_parts=nil
@message_ref=nil


37
38
39
40
41
42
43
44
45
46
47
# File 'lib/ucp/util/gsm_packed_msg.rb', line 37

def initialize(encoded,unencoded,chars,required_septets,tainted=false)
  @encoded=encoded
  @unencoded=unencoded
  @chars=chars
  @required_septets=required_septets
  @tainted=tainted

#    @part_nr=1
#    @total_parts=1
#    @message_ref=0
end