Class: LWS::Generic::Task

Inherits:
Model
  • Object
show all
Defined in:
lib/lws/generic.rb

Overview

The task class

Direct Known Subclasses

Auth::Task, Maps::Task, Presence::Task

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Task

Returns a new instance of Task.



77
78
79
# File 'lib/lws/generic.rb', line 77

def initialize(attrs = {})
 super
end

Instance Attribute Details

#created_atString

Returns the timestamp of when the map was created.

Returns:

  • (String)

    the timestamp of when the map was created



# File 'lib/lws/generic.rb', line 71


#functionString

Returns the function to run.

Returns:

  • (String)

    the function to run



# File 'lib/lws/generic.rb', line 56


#idFixnum (readonly)

Returns the (unique) ID of the task.

Returns:

  • (Fixnum)

    the (unique) ID of the task



# File 'lib/lws/generic.rb', line 47


#intervalFixnum

Returns the interval in minutes.

Returns:

  • (Fixnum)

    the interval in minutes



# File 'lib/lws/generic.rb', line 53


#last_ranString

Returns the time the task was last run.

Returns:

  • (String)

    the time the task was last run



# File 'lib/lws/generic.rb', line 59


#nameString

Returns the name of the task.

Returns:

  • (String)

    the name of the task



# File 'lib/lws/generic.rb', line 50


#node_nameString

Returns the name of the node.

Returns:

  • (String)

    the name of the node



# File 'lib/lws/generic.rb', line 65


#pidString

Returns the process ID of the task.

Returns:

  • (String)

    the process ID of the task



# File 'lib/lws/generic.rb', line 68


#startedString

Returns the time the task was started.

Returns:

  • (String)

    the time the task was started



# File 'lib/lws/generic.rb', line 62


#updated_atString

Returns the timestamp of when the map was last updated.

Returns:

  • (String)

    the timestamp of when the map was last updated



77
78
79
# File 'lib/lws/generic.rb', line 77

def initialize(attrs = {})
 super
end