Class: Podio::ItemRevision
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::ItemRevision
- Defined in:
- lib/podio/models/item_revision.rb
Overview
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
Class Method Summary collapse
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.find(item_id, revision_id) ⇒ Object
12 13 14 |
# File 'lib/podio/models/item_revision.rb', line 12 def find(item_id, revision_id) member Podio.connection.get("/item/#{item_id}/revision/#{revision_id}").body end |
.find_all_by_item_id(item_id) ⇒ Object
17 18 19 |
# File 'lib/podio/models/item_revision.rb', line 17 def find_all_by_item_id(item_id) list Podio.connection.get("/item/#{item_id}/revision/").body end |