lib/pinboard/post.rb in pinboard-0.0.51 vs lib/pinboard/post.rb in pinboard-0.1.0

- old
+ new

@@ -13,7 +13,20 @@ attributes.each do |attribute, value| send("#{attribute}=", value) if respond_to?("#{attribute}=") end end + + def to_json(*args) + { + href: href, + description: description, + extended: extended, + tag: tag, + time: time, + replace: replace, + shared: shared, + toread: toread + }.to_json(*args) + end end end