Method: CTM::Call#save
- Defined in:
- lib/ctm/call.rb
#save(options = {}) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/ctm/call.rb', line 32 def save(={}) #puts "save: #{options.inspect}" path_str = "/api/v1/#{@list_type_path}/#{@id}/modify.json" = {} ReadWriteFields.each do |field| [field == :notes ? :comments : field] = self.send field end [:call] = ([:call] || {}).merge #puts path_str self.class.put(path_str, :body => .merge(:auth_token => @token)) end |