Sha256: cc0ca50089d48f986cf523eae8f775e2d5301c00c5183c73d1792891f337cb7e

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

module Couchy
  module Resources
    module Database
      def get_database(name)
        exec(:get, name)
      end

      def create_database(name, data = {})
        exec(:put, name, data.to_json)
      end

      def delete_database(name)
        exec(:delete, name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couchy-0.1.0 lib/couchy/resources/database.rb