Module: Circonus::Actions::InstanceMethods::Create

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

Instance Method Summary collapse

Methods included from Save

#new_record?, #save

Instance Method Details

#createObject



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

def create
  attributes = Circonus::Actions.time_to_i(filtered_attributes)
  data = client.post(URI.escape(path), attributes)
  self.class.new(JSON.parse(data))
end