Class: Podio::Recurrence

Inherits:
ActivePodio::Base show all
Defined in:
lib/podio/models/recurrence.rb

Overview

Instance Attribute Summary

Attributes inherited from ActivePodio::Base

#attributes

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

.delete(ref_type, ref_id) ⇒ Object



14
15
16
# File 'lib/podio/models/recurrence.rb', line 14

def delete(ref_type, ref_id)
  Podio.connection.delete("/recurrence/#{ref_type}/#{ref_id}").body
end

.update(ref_type, ref_id, attributes) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/podio/models/recurrence.rb', line 19

def update(ref_type, ref_id, attributes)
  response = Podio.connection.put do |req|
    req.url "/recurrence/#{ref_type}/#{ref_id}"
    req.body = attributes
  end
  response.status
end