Sha256: 78183b7d158f01d29ac03b39fd3f83b2b8b4a45bcd5fb5cb40e6b363853e61f8

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

require 'ostruct'
require 'roar/json'
require 'roar/client'

module Adjust
  module Clients
    class Base < OpenStruct
      include Roar::JSON
      include Roar::Client

      attr_writer :transport_engine

      def serialize
        to_hash
      end

      def transport_engine
        @transport_engine || Transport::Faraday
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adjust-0.0.4 lib/adjust/clients/base.rb
adjust-0.0.3 lib/adjust/clients/base.rb
adjust-0.0.2 lib/adjust/clients/base.rb
adjust-0.0.1 lib/adjust/clients/base.rb