lib/tumblr/reader.rb in tumblr-rb-0.1.1 vs lib/tumblr/reader.rb in tumblr-rb-1.0.0
- old
+ new
@@ -1,8 +1,10 @@
#TODO: Documentation
class Tumblr
class Reader < Weary::Base
+ headers({"User-Agent" => Tumblr::USER_AGENT})
+
def initialize(*credentials)
@defaults = {:email => credentials[0], :password => credentials[1]} unless credentials.blank?
end
# http://www.tumblr.com/docs/en/api#api_read
\ No newline at end of file