Class: Txter::Gateway::Response
- Inherits:
-
Object
- Object
- Txter::Gateway::Response
- Defined in:
- lib/gateway.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*args) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(*args) ⇒ Response
Returns a new instance of Response.
7 8 9 |
# File 'lib/gateway.rb', line 7 def initialize(*args) @options = args.last end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/gateway.rb', line 11 def success? :success == @options[:status] end |