Class: Infobip::SmsApi::Response::ServiceException
- Inherits:
-
Object
- Object
- Infobip::SmsApi::Response::ServiceException
- Defined in:
- lib/infobip/sms_api/response/service_exception.rb
Instance Attribute Summary collapse
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ServiceException
constructor
A new instance of ServiceException.
Constructor Details
#initialize(attributes) ⇒ ServiceException
Returns a new instance of ServiceException.
8 9 10 11 |
# File 'lib/infobip/sms_api/response/service_exception.rb', line 8 def initialize(attributes) @message_id = attributes['messageId'] @text = attributes['text'] end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
6 7 8 |
# File 'lib/infobip/sms_api/response/service_exception.rb', line 6 def @message_id end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/infobip/sms_api/response/service_exception.rb', line 6 def text @text end |