Exception: SmsRu::Client::Models::Responses::SendSms::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sms_ru/client/models/responses/send_sms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (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

#statusObject (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

#textObject (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