Skip to content
Browse files

Merge pull request #13 from djhopper01/master

Add an optional category_id to Attachment
  • Loading branch information...
2 parents 64d966d + 7ef5636 commit b42897ad229c21d6bd9446e83040d8188ec0da40 @anibalcucco committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/basecamp/resources/attachment.rb
View
4 lib/basecamp/resources/attachment.rb
@@ -1,5 +1,5 @@
module Basecamp; class Attachment
- attr_accessor :id, :filename, :content
+ attr_accessor :id, :filename, :content, :category_id
def self.create(filename, content)
returning new(filename, content) do |attachment|
@@ -16,7 +16,7 @@ def attributes
end
def to_xml(options = {})
- { :file => attributes }.to_xml(options)
+ { :file => attributes, :category_id => category_id }.to_xml(options)
end
def inspect

0 comments on commit b42897a

Please sign in to comment.
Something went wrong with that request. Please try again.