Skip to content

Commit e735d6e

Browse files
committed
Use generic names for client
Callers shouldn't care if we're using Hurley by default. /cc @rafaelfranca
1 parent f388b46 commit e735d6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/sawyer/agent.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ def self.decode(data)
3131
# options - Hash of options.
3232
# :allow_undefined_methods - Allow relations to call all the HTTP verbs,
3333
# not just the ones defined.
34-
# :hurley - Optional Hurley::Client to use.
34+
# :client - Optional client to use for requests.
3535
# :links_parser - Optional parser to parse link relations
3636
# Defaults: Sawyer::LinkParsers::Hal.new
3737
# :serializer - Optional serializer Class. Defaults to
3838
# self.serializer_class.
3939
#
40-
# Yields the Hurley::Client if a block is given.
40+
# Yields the client if a block is given.
4141
def initialize(endpoint, options = nil)
4242
@endpoint = endpoint
4343
@client = (options && options[:hurley]) || Hurley::Client.new(@endpoint)
@@ -68,7 +68,7 @@ def start
6868
call :get, @endpoint
6969
end
7070

71-
# Makes a request through Hurley.
71+
# Makes a request through the client.
7272
#
7373
# method - The Symbol name of an HTTP method.
7474
# url - The String URL to access. This can be relative to the Agent's

0 commit comments

Comments
 (0)