lib/sorenson/services/asset.rb in 360_services-1.0.4 vs lib/sorenson/services/asset.rb in 360_services-1.0.5

- old
+ new

@@ -58,11 +58,11 @@ def destroy Base.delete_from("/assets/#{id}")["status"] end - def save - Base.put_to("/assets/#{id}", :asset => {:name => name, :password => password, :description => description}) + def save(attributes={}) + Base.put_to("/assets/#{id}", :asset => {:name => name, :password => password, :description => description}.merge(attributes)) end def add_category(name) Category.new(Base.post_to("/assets/#{id}/categories", :category => {:name => name})) end \ No newline at end of file