lib/tumblr/client.rb in tumblr_client-0.7.1 vs lib/tumblr/client.rb in tumblr_client-0.7.2

- old
+ new

@@ -7,10 +7,16 @@ require 'tumblr/helpers' module Tumblr class Client + class << self + def default_api_host + ENV['TUMBLR_API_HOST'] || 'api.tumblr.com' + end + end + include Tumblr::Request include Tumblr::Blog include Tumblr::User include Tumblr::Post include Tumblr::Tagged @@ -23,10 +29,10 @@ instance_variable_set("@#{key}".to_sym, attrs[key]) end end def api_host - ENV['TUMBLR_API_HOST'] || 'api.tumblr.com' + self.class.default_api_host end def credentials { :consumer_key => @consumer_key,