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



75
76
77
78
79
# File 'lib/circonus/models/actions.rb', line 75

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