Sha256: 9bea90ddd1d789171694b9d9ff127a567f33c14dece27e4f3c375330aa2fb4ae

Contents?: true

Size: 576 Bytes

Versions: 5

Compression:

Stored size: 576 Bytes

Contents

module SmsBroker
  module Client
    module Response
      class VoiceSuccess
        attr_reader :raw,
                    :service,
                    :serialized

        def initialize(service, response, serialized)
          @raw = response
          @service = service
          @serialized = serialized
        end

        def success?
          true
        end

        def to
          serialized[:to]
        end

        def call_id
          serialized[:call_id]
        end
      end
    end
  end
end

require 'sms_broker/client/response/nexmo_voice_success'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sms_broker-1.0.8 lib/sms_broker/client/response/voice_success.rb
sms_broker-1.0.7 lib/sms_broker/client/response/voice_success.rb
sms_broker-1.0.5 lib/sms_broker/client/response/voice_success.rb
sms_broker-1.0.4 lib/sms_broker/client/response/voice_success.rb
sms_broker-1.0.3 lib/sms_broker/client/response/voice_success.rb