Class: Neuron::Client::Report
Constant Summary
collapse
- TEMPLATES =
%w(ad_events ad_events2 delivery_metrics delivery_metrics2 post_activities)
- STATES =
%w(NEW WAITING RUNNING READY FAILED CANCELLED)
- ATTRIBUTES =
[
:id,
:parameters, :state, :template, :created_at, :updated_at, ]
Instance Method Summary
collapse
Methods included from Base
#apply_attributes!, #destroy, #id=, included, #initialize, #new_record?, #save, #to_create_hash, #to_hash, #to_update_hash, #update_attributes, #valid?
#all, #api=, #create, #create!, #find, #validate=
Instance Method Details
#attributes ⇒ Object
21
22
23
|
# File 'lib/neuron-client/model/report.rb', line 21
def attributes
ATTRIBUTES
end
|
29
30
31
32
|
# File 'lib/neuron-client/model/report.rb', line 29
def result
connected_to_admin!
connection.get("reports/#{id}/result", :format => "")
end
|
25
26
27
|
# File 'lib/neuron-client/model/report.rb', line 25
def status
@state
end
|