class Podio::ItemDiff < ActivePodio::Base
  property :field_id, :integer
  property :type, :string
  property :external_id, :integer
  property :label, :string
  property :from, :array
  property :to, :array
  
  alias_method :id, :field_id
  
  class << self
    def find_by_item_and_revisions(item_id, revision_from_id, revision_to_id)
      list Podio.connection.get("/item/#{item_id}/revision/#{revision_from_id}/#{revision_to_id}").body
    end
  end
end
class Podio::ItemDiff < ActivePodio::Base
  property :field_id, :integer
  property :type, :string
  property :external_id, :integer
  property :label, :string
  property :from, :array
  property :to, :array
  
  alias_method :id, :field_id
  
  class << self
    def find_by_item_and_revisions(item_id, revision_from_id, revision_to_id)
      list Podio.connection.get("/item/#{item_id}/revision/#{revision_from_id}/#{revision_to_id}").body
    end
    
    def revert(item_id, revision_id)
      Podio.connection.delete("/item/#{item_id}/revision/#{revision_id}").body
    end
  end
end
Add revert method for item revisions
Add revert method for item revisions
