Class: Zizq::Resources::CronEntry

Inherits:
Resource
  • Object
show all
Defined in:
lib/zizq/resources/cron_entry.rb

Overview

Typed wrapper around a cron entry response hash.

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Zizq::Resources::Resource

Instance Method Details

#expressionObject

: () -> String



12
# File 'lib/zizq/resources/cron_entry.rb', line 12

def expression      = @data["expression"]      #: () -> String

#jobObject

Returns the job template for this entry.



22
23
24
# File 'lib/zizq/resources/cron_entry.rb', line 22

def job #: () -> JobTemplate
  JobTemplate.new(client, @data["job"])
end

#last_enqueue_atObject

: () -> Float?



19
# File 'lib/zizq/resources/cron_entry.rb', line 19

def last_enqueue_at = ms_to_seconds(@data["last_enqueue_at"]) #: () -> Float?

#nameObject

: () -> String



11
# File 'lib/zizq/resources/cron_entry.rb', line 11

def name            = @data["name"]            #: () -> String

#next_enqueue_atObject

: () -> Float?



18
# File 'lib/zizq/resources/cron_entry.rb', line 18

def next_enqueue_at = ms_to_seconds(@data["next_enqueue_at"]) #: () -> Float?

#pausedObject

: () -> bool



14
# File 'lib/zizq/resources/cron_entry.rb', line 14

def paused          = @data["paused"]          #: () -> bool

#paused?Boolean

: () -> bool

Returns:

  • (Boolean)


15
# File 'lib/zizq/resources/cron_entry.rb', line 15

def paused?         = paused                   #: () -> bool

#paused_atObject

: () -> Float?



16
# File 'lib/zizq/resources/cron_entry.rb', line 16

def paused_at       = ms_to_seconds(@data["paused_at"])   #: () -> Float?

#resumed_atObject

: () -> Float?



17
# File 'lib/zizq/resources/cron_entry.rb', line 17

def resumed_at      = ms_to_seconds(@data["resumed_at"])  #: () -> Float?

#timezoneObject

: () -> String?



13
# File 'lib/zizq/resources/cron_entry.rb', line 13

def timezone        = @data["timezone"]        #: () -> String?