Class: SmsBroker::Client::Response::VoiceSuccess
- Inherits:
-
Object
- Object
- SmsBroker::Client::Response::VoiceSuccess
- Defined in:
- lib/sms_broker/client/response/voice_success.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#serialized ⇒ Object
readonly
Returns the value of attribute serialized.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #call_id ⇒ Object
-
#initialize(service, response, serialized) ⇒ VoiceSuccess
constructor
A new instance of VoiceSuccess.
- #success? ⇒ Boolean
- #to ⇒ Object
Constructor Details
#initialize(service, response, serialized) ⇒ VoiceSuccess
Returns a new instance of VoiceSuccess.
9 10 11 12 13 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 9 def initialize(service, response, serialized) @raw = response @service = service @serialized = serialized end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
5 6 7 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 5 def raw @raw end |
#serialized ⇒ Object (readonly)
Returns the value of attribute serialized.
5 6 7 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 5 def serialized @serialized end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
5 6 7 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 5 def service @service end |
Instance Method Details
#call_id ⇒ Object
23 24 25 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 23 def call_id serialized[:call_id] end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 15 def success? true end |
#to ⇒ Object
19 20 21 |
# File 'lib/sms_broker/client/response/voice_success.rb', line 19 def to serialized[:to] end |