Exception: SmsRu::Client::Models::Responses::SendSms::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SmsRu::Client::Models::Responses::SendSms::Error
- Defined in:
- lib/sms_ru/client/models/responses/send_sms.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(status, code, text) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, code, text) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 14 |
# File 'lib/sms_ru/client/models/responses/send_sms.rb', line 9 def initialize(status, code, text) @status = status @code = code @text = text super("status: #{status}, code: #{code}, text: #{text}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/sms_ru/client/models/responses/send_sms.rb', line 7 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/sms_ru/client/models/responses/send_sms.rb', line 7 def status @status end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/sms_ru/client/models/responses/send_sms.rb', line 7 def text @text end |