Class: SmsBroker::Client::Response::TwilioError

Inherits:
Error
  • Object
show all
Defined in:
lib/sms_broker/client/response/twilio_error.rb

Constant Summary collapse

SENDER_ID_NOT_SUPPORTED =
%w(21212 21612).freeze

Instance Attribute Summary

Attributes inherited from Error

#response, #serialized, #service

Instance Method Summary collapse

Methods inherited from Error

#invalid_sender_id?, #success?

Constructor Details

#initialize(twilio_response) ⇒ TwilioError

Returns a new instance of TwilioError.



7
8
9
# File 'lib/sms_broker/client/response/twilio_error.rb', line 7

def initialize(twilio_response)
  super :twilio, twilio_response, serialize(twilio_response)
end