Sha256: 3c575dbe05927d3c81262d7653ef44fee8fdfcd9f994ce012a91c0e2a1781f19
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
module Neuron module Client class Report include Base TEMPLATES = %w(ad_events creative_events delivery_metrics post_activities) STATES = %w(NEW WAITING RUNNING READY FAILED CANCELLED) ATTRIBUTES = [ :id, :parameters, # hash, where keys are parameter names, and values are parameter values as strings. :state, # string, one of STATES :template, # string, one of TEMPLATES :created_at, # string, datetime in UTC :updated_at, # string, datetime in UTC ] attr_accessor *ATTRIBUTES def attributes ATTRIBUTES end def status @state end def result connected_to_admin! connection.get("reports/#{id}/result", :format => "") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neuron-client-0.5.3 | lib/neuron-client/model/report.rb |