class Minicron::Hub::Job

Public Instance Methods

name() click to toggle source

Default the name of the command to the command itself if no name is set

# File lib/minicron/hub/models/job.rb, line 11
def name
  if read_attribute(:name) == '' || read_attribute(:name).nil?
    read_attribute(:command)
  else
    read_attribute(:name)
  end
end