Class: TWW::Testing
Instance Attribute Summary collapse
-
#sent ⇒ Object
readonly
Returns the value of attribute sent.
Attributes inherited from Client
Instance Method Summary collapse
- #call(phone, message, extras = {}) ⇒ Object
- #clear! ⇒ Object
- #deliver(phone, message, extras = {}) ⇒ Object
-
#initialize(config) ⇒ Testing
constructor
A new instance of Testing.
- #size ⇒ Object
Constructor Details
#initialize(config) ⇒ Testing
Returns a new instance of Testing.
9 10 11 12 |
# File 'lib/tww/testing.rb', line 9 def initialize(config) super @sent = [] end |
Instance Attribute Details
#sent ⇒ Object (readonly)
Returns the value of attribute sent.
7 8 9 |
# File 'lib/tww/testing.rb', line 7 def sent @sent end |
Instance Method Details
#call(phone, message, extras = {}) ⇒ Object
26 27 28 |
# File 'lib/tww/testing.rb', line 26 def call(phone, , extras = {}) request(phone, , extras) end |
#clear! ⇒ Object
14 15 16 |
# File 'lib/tww/testing.rb', line 14 def clear! sent.clear end |
#deliver(phone, message, extras = {}) ⇒ Object
22 23 24 |
# File 'lib/tww/testing.rb', line 22 def deliver(phone, , extras = {}) request(phone, , extras) end |
#size ⇒ Object
18 19 20 |
# File 'lib/tww/testing.rb', line 18 def size sent.size end |