Sha256: 0bbf40a6c74987e4581928004ff29271559ae0cbd1ce1d7ea13a7b478828db7e

Contents?: true

Size: 462 Bytes

Versions: 11

Compression:

Stored size: 462 Bytes

Contents

module Neo4j::Server
  class Neo4jServerEndpoint
    def initialize(params = {})
      @params = params
    end

    def merged_options(options)
      options.merge!(@params)
    end

    def get(url, options={})
      HTTParty.get(url, merged_options(options))
    end

    def post(url, options={})
      HTTParty.post(url, merged_options(options))
    end

    def delete(url, options={})
      HTTParty.delete(url, merged_options(options))
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
neo4j-core-3.0.0.rc.4 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.rc.1 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.19 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.18 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.17 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.16 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.15 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.14 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.13 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.12 lib/neo4j-server/neo4j_server_endpoint.rb
neo4j-core-3.0.0.alpha.11 lib/neo4j-server/neo4j_server_endpoint.rb