Class: Response
- Inherits:
-
Object
- Object
- Response
- Defined in:
- lib/voip.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
code: Get the status code of the returned response message: Get the status message of the returned response.
-
#message ⇒ Object
code: Get the status code of the returned response message: Get the status message of the returned response.
Instance Method Summary collapse
-
#to_s ⇒ Object
User friendly string format.
Instance Attribute Details
#code ⇒ Object
code: Get the status code of the returned response message: Get the status message of the returned response
176 177 178 |
# File 'lib/voip.rb', line 176 def code @code end |
#message ⇒ Object
code: Get the status code of the returned response message: Get the status message of the returned response
176 177 178 |
# File 'lib/voip.rb', line 176 def @message end |
Instance Method Details
#to_s ⇒ Object
User friendly string format
179 180 181 |
# File 'lib/voip.rb', line 179 def to_s + " (" + code + ")" end |