Class: Wurk::Import::SidekiqCron::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/wurk/import/sidekiq_cron.rb

Overview

One sidekiq-cron entry and what it becomes. loop is nil exactly when skip_reason says why the entry cannot be carried over unchanged.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#key ⇒ Object

Returns the value of attribute key

Returns:

  • (Object) —

    the current value of key



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def key
  @key
end

#loop ⇒ Object

Returns the value of attribute loop

Returns:

  • (Object) —

    the current value of loop



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def loop
  @loop
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def name
  @name
end

#namespace ⇒ Object

Returns the value of attribute namespace

Returns:

  • (Object) —

    the current value of namespace



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def namespace
  @namespace
end

#skip_reason ⇒ Object

Returns the value of attribute skip_reason

Returns:

  • (Object) —

    the current value of skip_reason



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def skip_reason
  @skip_reason
end

#source ⇒ Object

Returns the value of attribute source

Returns:

  • (Object) —

    the current value of source



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def source
  @source
end

#warnings ⇒ Object

Returns the value of attribute warnings

Returns:

  • (Object) —

    the current value of warnings



26
27
28
# File 'lib/wurk/import/sidekiq_cron.rb', line 26

def warnings
  @warnings
end

Instance Method Details

#importable? ⇒ Boolean

Returns:

  • (Boolean)


27
# File 'lib/wurk/import/sidekiq_cron.rb', line 27

def importable? = !loop.nil?