Skip to content

Commit

Permalink
Merge pull request #17 from twilio/include-utils-in-taskrouter-client
Browse files Browse the repository at this point in the history
Includes Utils and REST::Utils in BaseClient.
  • Loading branch information
skimbrel committed Feb 18, 2015
2 parents 0857a99 + 3512fd9 commit 73ddee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/twilio-ruby/rest/client.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Twilio
module REST
class BaseClient
include Twilio::Util
include Twilio::REST::Utils

HTTP_HEADERS = {
'Accept' => 'application/json',
Expand Down Expand Up @@ -157,9 +159,6 @@ def connect_and_send(request) # :doc:
# accounts and ListResource#create to create a new account. Use
# ListResource#get to grab a particular account once you know its sid.
class Client < BaseClient
include Twilio::Util
include Twilio::REST::Utils

API_VERSION = '2010-04-01'

attr_reader :account, :accounts
Expand Down
2 changes: 1 addition & 1 deletion lib/twilio-ruby/rest/next_gen_list_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module REST
class NextGenListResource < Twilio::REST::ListResource
def list(params={}, full_path=false)
raise "Can't get a resource list without a REST Client" unless @client
response = @client.get @path, params, true
response = @client.get @path, params, full_path
list_key = response['meta']['key']
raise "Couldn't find a list key in response meta" unless list_key
resources = response[list_key]
Expand Down

0 comments on commit 73ddee8

Please sign in to comment.