Class: SmsBroker::Client::Response::Success
- Inherits:
-
Object
- Object
- SmsBroker::Client::Response::Success
- Defined in:
- lib/sms_broker/client/response/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
- #from ⇒ Object
-
#initialize(service, response, serialized) ⇒ Success
constructor
A new instance of Success.
- #message_id ⇒ Object
- #success? ⇒ Boolean
- #to ⇒ Object
Constructor Details
#initialize(service, response, serialized) ⇒ Success
Returns a new instance of Success.
9 10 11 12 13 |
# File 'lib/sms_broker/client/response/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/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/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/success.rb', line 5 def service @service end |
Instance Method Details
#from ⇒ Object
23 24 25 |
# File 'lib/sms_broker/client/response/success.rb', line 23 def from serialized[:from] end |
#message_id ⇒ Object
27 28 29 |
# File 'lib/sms_broker/client/response/success.rb', line 27 def serialized[:message_id] end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/sms_broker/client/response/success.rb', line 15 def success? true end |
#to ⇒ Object
19 20 21 |
# File 'lib/sms_broker/client/response/success.rb', line 19 def to serialized[:to] end |