Sha256: bd681f3e1aa052791a18ad84271a836e0419e8a27e913c6ae604917f95644ea6

Contents?: true

Size: 609 Bytes

Versions: 10

Compression:

Stored size: 609 Bytes

Contents

module Clickatell
  class API
   
    class MessageStatus
      STATUS_MAP = {
        1  => 'Message unknown',
        2  => 'Message queued',
        3  => 'Delivered to gateway',
        4  => 'Received by recipient',
        5  => 'Error with message',
        6  => 'User cancelled messaged delivery',
        7  => 'Error delivering message',
        8  => 'OK',
        9  => 'Routing error',
        10 => 'Message expired',
        11 => 'Message queued for later delivery',
        12 => 'Out of credit'
      }
      
      def self.[](code)
        STATUS_MAP[code]
      end
    end 
  
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
commonthread-clickatell-0.5.1 lib/clickatell/api/message_status.rb
commonthread-clickatell-0.5.2 lib/clickatell/api/message_status.rb
clickatell-ruby19-0.7.1 lib/clickatell/api/message_status.rb
clickatell-0.7.1 lib/clickatell/api/message_status.rb
dimiro1-clickatell-0.7.0 lib/clickatell/api/message_status.rb
clickatell-0.7.0 lib/clickatell/api/message_status.rb
clickatell-0.6.0 lib/clickatell/api/message_status.rb
clickatell-0.5.0 lib/clickatell/api/message_status.rb
clickatell-0.4.1 lib/clickatell/api/message_status.rb
clickatell-0.4.0 lib/clickatell/api/message_status.rb