Class: RubynCode::Tasks::Task

Inherits:
Data
  • Object
show all
Defined in:
lib/rubyn_code/tasks/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def created_at
  @created_at
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def 
  @metadata
end

#ownerObject (readonly)

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def owner
  @owner
end

#priorityObject (readonly)

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def priority
  @priority
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def result
  @result
end

#session_idObject (readonly)

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def session_id
  @session_id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def status
  @status
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def title
  @title
end

#updated_atObject (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



5
6
7
# File 'lib/rubyn_code/tasks/models.rb', line 5

def updated_at
  @updated_at
end

Instance Method Details

#blocked?Boolean

Returns:

  • (Boolean)


12
# File 'lib/rubyn_code/tasks/models.rb', line 12

def blocked? = status == 'blocked'

#completed?Boolean

Returns:

  • (Boolean)


11
# File 'lib/rubyn_code/tasks/models.rb', line 11

def completed? = status == 'completed'

#failed?Boolean

Returns:

  • (Boolean)


13
# File 'lib/rubyn_code/tasks/models.rb', line 13

def failed? = status == 'failed'

#in_progress?Boolean

Returns:

  • (Boolean)


10
# File 'lib/rubyn_code/tasks/models.rb', line 10

def in_progress? = status == 'in_progress'

#pending?Boolean

Returns:

  • (Boolean)


9
# File 'lib/rubyn_code/tasks/models.rb', line 9

def pending? = status == 'pending'