lib/cloudally.rb in cloudally-0.2.1 vs lib/cloudally.rb in cloudally-0.2.2

- old
+ new

@@ -1,29 +1,33 @@ require "wrapi" require File.expand_path('cloudally/api', __dir__) require File.expand_path('cloudally/client', __dir__) require File.expand_path('cloudally/version', __dir__) +require File.expand_path('cloudally/pagination', __dir__) module CloudAlly extend WrAPI::Configuration extend WrAPI::RespondTo DEFAULT_ENDPOINT = 'https://api.cloudally.com/v1/'.freeze DEFAULT_USERAGENT = "CloudAlly Ruby API wrapper #{CloudAlly::VERSION}".freeze + DEFAULT_PAGINATION = CloudAlly::RequestPagination::Pager # Alias for CloudAlly::Client.new # # @return [CloudAlly::Client] def self.client(options = {}) CloudAlly::Client.new({ endpoint: DEFAULT_ENDPOINT, - user_agent: DEFAULT_USERAGENT + user_agent: DEFAULT_USERAGENT, + pagination_class: DEFAULT_PAGINATION }.merge(options)) end def self.reset super self.endpoint = DEFAULT_ENDPOINT self.user_agent = DEFAULT_USERAGENT + self.pagination_class = DEFAULT_PAGINATION end end