Class: BubbleWrap::SMS::Result

Inherits:
Object
  • Object
show all
Defined in:
motion/sms/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ Result

Returns a new instance of Result


6
7
8
# File 'motion/sms/result.rb', line 6

def initialize(result)
  self.result = result
end

Instance Attribute Details

#resultObject

Returns the value of attribute result


4
5
6
# File 'motion/sms/result.rb', line 4

def result
  @result
end

Instance Method Details

#canceled?Boolean

Returns:

  • (Boolean)

14
15
16
# File 'motion/sms/result.rb', line 14

def canceled?
  self.result == MessageComposeResultCancelled
end

#failed?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'motion/sms/result.rb', line 18

def failed?
  self.result == MessageComposeResultFailed
end

#sent?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'motion/sms/result.rb', line 10

def sent?
  self.result == MessageComposeResultSent
end