Sha256: 38c8529afc4fb7154e8b8b501e5ef4e1383a2fc66d1771609bda4d4da2fe6038

Contents?: true

Size: 396 Bytes

Versions: 10

Compression:

Stored size: 396 Bytes

Contents

module DigitalOcean
  module Resource
    class Base
      def initialize(connection, options = {})
        @connection = connection
      end

      private

      def apply_params(query, opts)
        apply_default_params(query)

        opts.each_pair do |key, value|
          query.params[key] = value
        end
      end

      def apply_default_params(query)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
digital_ocean-1.5.0 lib/digital_ocean/resource/base.rb
digital_ocean-1.4.0 lib/digital_ocean/resource/base.rb
digital_ocean-1.3.0 lib/digital_ocean/resource/base.rb
digital_ocean-1.2.0 lib/digital_ocean/resource/base.rb
digital_ocean-1.0.1 lib/digital_ocean/resource/base.rb
digital_ocean-1.0.0 lib/digital_ocean/resource/base.rb
digital_ocean-0.2.0 lib/digital_ocean/resource/base.rb
digital_ocean-0.1.0 lib/digital_ocean/resource/base.rb
digital_ocean-0.0.1 lib/digital_ocean/resource/base.rb
digital_ocean-0.0.1alpha1 lib/digital_ocean/resource/base.rb