Class: Podio::ItemField
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::ItemField
- Defined in:
- lib/podio/models/item_field.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary collapse
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, #initialize_attributes, list, member, #new_record?, output_attribute_as_json, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.ical_entry(item_id, field_id) ⇒ Object
20 21 22 |
# File 'lib/podio/models/item_field.rb', line 20 def ical_entry(item_id, field_id) Podio.connection.get("/calendar/item/#{item_id}/field/#{field_id}/ics/").body end |
.update(item_id, field_id, values) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/podio/models/item_field.rb', line 12 def update(item_id, field_id, values) response = Podio.connection.put do |req| req.url "/item/#{item_id}/value/#{field_id}" req.body = values end response.body end |