Sha256: 77da30a79bd9b565505b24f5dcb6af2d7745483f3821bdaabd0dfae2baeebe96
Contents?: true
Size: 469 Bytes
Versions: 5
Compression:
Stored size: 469 Bytes
Contents
module SmsBroker module Client module Response class NexmoVoiceError < Error def initialize(nexmo_response) super :nexmo, nexmo_response, serialize_error_response(nexmo_response) end private def serialize_error_response(nexmo_response) errors = {}.tap do |hash| hash[nexmo_response['status']] = nexmo_response['error'] end errors end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems