lib/wcc/media/client.rb in wcc-media-client-0.2.0 vs lib/wcc/media/client.rb in wcc-media-client-0.2.1
- old
+ new
@@ -6,11 +6,16 @@
require_relative 'client/response'
module WCC
module Media
class Client < RestClient
- def self.default
- @default ||= new
+ class << self
+ attr_writer :default
+ # The default client. Set this in an initializer to change the client used
+ # by all the WCC::Media models
+ def default
+ @default ||= new
+ end
end
PARAMS = %w[
limit
offset
\ No newline at end of file