lib/sorenson/services/asset.rb in 360_services-0.0.3 vs lib/sorenson/services/asset.rb in 360_services-0.0.4

- old
+ new

@@ -23,16 +23,15 @@ list.collect {|a| new(a) } end # Get a list of asset guids by passing a tag name def self.find_all_by_tag(tag_name) - p account_id get_from("/tags/#{tag_name}/assets", :account_id => account_id) end def self.find_all_by_flag(flag_name) - get_from("/flags/#{flag_name}/assets?account_id=#{account_id}") + get_from("/flags/#{flag_name}/assets", :account_id => account_id) end def tags Base.get_from("/assets/#{id}/tags") end @@ -69,9 +68,10 @@ Category.new(Base.post_to("/assets/#{id}/categories", :category => {:name => name})) end def remove_category category = self.category + return true if category.nil? Base.delete_from("/assets/#{id}/categories/#{category.id}") end def category data = Base.get_from("/assets/#{id}/categories") \ No newline at end of file