Sha256: c73c2dc6d25aafc40035899e5d110b560e1bebc407c74359a86bd286aece5968

Contents?: true

Size: 408 Bytes

Versions: 8

Compression:

Stored size: 408 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.8.0 motion/sms/result.rb
bubble-wrap-1.7.1 motion/sms/result.rb
bubble-wrap-1.7.0 motion/sms/result.rb
bubble-wrap-1.6.0 motion/sms/result.rb
bubble-wrap-1.6.0.rc1 motion/sms/result.rb
bubble-wrap-1.5.0 motion/sms/result.rb
bubble-wrap-1.5.0.rc1 motion/sms/result.rb
bubble-wrap-1.4.0 motion/sms/result.rb