Class: MobHttp::Result
- Inherits:
-
Object
- Object
- MobHttp::Result
- Defined in:
- lib/mobpush/http/result.rb
Constant Summary collapse
- ERROR =
500- SUCCESS =
200
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#res ⇒ Object
Returns the value of attribute res.
-
#responseCode ⇒ Object
Returns the value of attribute responseCode.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
8 9 10 |
# File 'lib/mobpush/http/result.rb', line 8 def error @error end |
#res ⇒ Object
Returns the value of attribute res.
8 9 10 |
# File 'lib/mobpush/http/result.rb', line 8 def res @res end |
#responseCode ⇒ Object
Returns the value of attribute responseCode.
8 9 10 |
# File 'lib/mobpush/http/result.rb', line 8 def responseCode @responseCode end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/mobpush/http/result.rb', line 8 def status @status end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/mobpush/http/result.rb', line 10 def to_s %{ status: #{@status}, error: #{@error}, res: #{res} } end |