lib/dribbble/shot.rb in dribbble-1.0.0.beta1 vs lib/dribbble/shot.rb in dribbble-1.0.0.beta2
- old
+ new
@@ -27,22 +27,9 @@
def self.after_create(res)
res.code == 202 ? res.headers[:location].split('/').last : false
end
- def create_attachment(attrs = {})
- res = html_post "/shots/#{id}/attachments" do |payload|
- Dribbble::Attachment.available_fields.each do |field|
- payload[field] = attrs[field]
- end
- end
- res.code == 202 ? true : false
- end
-
- def find_attachment(attachment_id)
- Dribbble::Attachment.new token, html_get("/shots/#{id}/attachments/#{attachment_id}")
- end
-
def like?
html_get "/shots/#{id}/like"
true
rescue RestClient::ResourceNotFound
false