Sha256: fef5877fb8bfd84e01b0b43d26fd4af4adf847edeff929c6b1a9dc4e50fe6946

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

module BubbleWrap
  module SMS
    class Result
      attr_accessor :result

      def initialize(result)
        self.result = result
      end

      def sent?
        self.result == MessageComposeResultSent
      end

      def canceled?
        self.result == MessageComposeResultCancelled
      end

      def failed?
        self.result == MessageComposeResultFailed
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bubble-wrap-1.9.7 motion/sms/result.rb
bubble-wrap-1.9.6 motion/sms/result.rb
bubble-wrap-1.9.5 motion/sms/result.rb
bubble-wrap-1.9.4 motion/sms/result.rb
bubble-wrap-1.9.3 motion/sms/result.rb
bubble-wrap-1.9.2 motion/sms/result.rb
bubble-wrap-1.9.1 motion/sms/result.rb
bubble-wrap-1.9.0 motion/sms/result.rb