Sha256: 2d38f71eeb009f4966b38a57dbfb517236bf1dc3e47bc86ece9a5840c1ca11ed

Contents?: true

Size: 681 Bytes

Versions: 4

Compression:

Stored size: 681 Bytes

Contents

module SmsBroker
  module Client
    module Response
      class Success
        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 from
          serialized[:from]
        end

        def message_id
          serialized[:message_id]
        end
      end
    end
  end
end

require 'sms_broker/client/response/nexmo_success'
require 'sms_broker/client/response/twilio_success'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sms_broker-1.0.5 lib/sms_broker/client/response/success.rb
sms_broker-1.0.4 lib/sms_broker/client/response/success.rb
sms_broker-1.0.3 lib/sms_broker/client/response/success.rb
sms_broker-1.0.2 lib/sms_broker/client/response/success.rb