class NeverBounce::CLI::Script::JobsDelete
Public Instance Methods
manifest()
click to toggle source
@!attribute manifest @return [Manifest]
# File lib/never_bounce/cli/script/jobs_delete.rb, line 26 def manifest @manifest ||= Manifest.new( name: "nb-jobs-delete", function: "Delete a job", cmdline: "[options] [VAR1=value] [VAR2=value] ...", ) end
request()
click to toggle source
An API::Request::JobsDelete
. @!attribute request @return [Object]
# File lib/never_bounce/cli/script/jobs_delete.rb, line 15 def request @request ||= API::Request::JobsDelete.new({ api_key: api_key, job_id: job_id, }) end
slim_main()
click to toggle source
@return [Integer]
# File lib/never_bounce/cli/script/jobs_delete.rb, line 37 def slim_main "Response".tap do |label| headings = [ ["ExecTime", :execution_time, :right], ] table = Table.new( headings: headings.map { |ar| ar[0] }, rows: [headings.map { |ar| get_table_value(response, ar) }], ).align!(headings) stdout.puts "\n#{label}:" stdout.puts table end 0 end