Module: Circonus::Actions::InstanceMethods::Update

Includes:
Save
Defined in:
lib/circonus/models/actions.rb

Instance Method Summary collapse

Methods included from Save

#new_record?, #save

Instance Method Details

#updateObject



68
69
70
71
# File 'lib/circonus/models/actions.rb', line 68

def update
  data = client.put(URI.escape("#{path}/#{id}"), filtered_attributes)
  self.class.new(JSON.parse(data))
end