Sha256: 1c364e2e9b19229f65e57b1a50ac50ec0d528c536778e6626251f08f414448a4

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

module Etsy

  # = BasicClient
  #
  # Used for calling public API methods.
  #
  class BasicClient

    # Create a new client that will connect to the specified host
    #
    def initialize
      @host = Etsy.host
    end

    def client # :nodoc:
      @client ||= Net::HTTP.new(@host)
    end

    # Fetch a raw response from the specified endpoint
    #
    def get(endpoint)
      client.get(endpoint)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
etsy-0.2.2 lib/etsy/basic_client.rb