lib/tumblr/post.rb in tumblr-rb-1.2.0 vs lib/tumblr/post.rb in tumblr-rb-1.3.0
- old
+ new
@@ -5,10 +5,11 @@
BASIC_PARAMS = [:date,:tags,:format,:group,:generator,:private,
:slug,:state,:'send-to-twitter',:'publish-on',:'reblog-key']
POST_PARAMS = [:title,:body,:source,:caption,:'click-through-url',
:quote,:name,:url,:description,:conversation,
:embed,:'externally-hosted-url']
+ REBLOG_PARAMS = [:comment, :as]
def self.parameters(*attributes)
if !attributes.blank?
@parameters = attributes
attr_accessor *@parameters
@@ -84,9 +85,13 @@
Writer.new(email,password).write(to_h)
end
def edit(email, password)
Writer.new(email,password).edit(to_h)
+ end
+
+ def reblog(email, password)
+ Writer.new(email,password).reblog(to_h)
end
def delete(email, password)
Writer.new(email,password).delete(to_h)
end
\ No newline at end of file