Sha256: 378603c9a6587f5c40e68edc94d51da866a49ff3ee47c31351990327299b7f0d

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

require 'excon'
require 'ebay/config'
require 'ebay/parser'

module Ebay
  class Request
    def sandbox!
      @host = @sandbox
    end

    def get(opts)
      Parser.new(connection.get(opts))
    end

    private

    def connection
      Excon.new("http://#{@host}#{@path}", @defaults)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ebay-ruby-0.0.1 lib/ebay/request.rb