Sha256: 50746a0c8df98e2d3dce22a9e52f6791e0818d2c870c8fc46dc909e74689b6b9

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

module Rapidash
  class Client
    include Clientable
    include Resourceable

    def initialize
      raise ConfigurationError.new "Missing Method, define using `method` on your client"
    end

    def get(url, options = {})
      request(:get, url, options)
    end

    def post(url, options = {})
      request(:post, url, options)
    end

    def put(url, options = {})
      request(:put, url, options)
    end

    def patch(url, options = {})
      request(:patch, url, options)
    end

    def delete(url, options = {})
      request(:delete, url, options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapidash-0.0.4 lib/rapidash/client.rb