Class: HabiticaClient::User::Task

Inherits:
Restful show all
Extended by:
DateAccessor, Hashup
Includes:
Status, Type
Defined in:
lib/habitica_client/user/task.rb,
lib/habitica_client/user/task/type.rb,
lib/habitica_client/user/task/status.rb,
lib/habitica_client/user/task/date_accessor.rb

Overview

A user task, which can be a habit, daily, or todo.

Defined Under Namespace

Modules: DateAccessor, Status, Type

Instance Attribute Summary collapse

Attributes inherited from ApiBase

#client

Method Summary

Methods included from DateAccessor

date_accessor

Methods included from Hashup

hashup

Methods included from Type

#daily?, #habit?, #todo?

Methods included from Status

#completed?

Methods inherited from Restful

#attributes=, #delete, #initialize, #new?, #save, #to_json

Methods included from Restful::ClassMethods

#parse, #remap

Methods inherited from ApiBase

#initialize

Constructor Details

This class inherits a constructor from HabiticaClient::Restful

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def attribute
  @attribute
end

#challengeObject

Returns the value of attribute challenge.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def challenge
  @challenge
end

#checklistObject

Returns the value of attribute checklist.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def checklist
  @checklist
end

#collapse_checklistObject

Returns the value of attribute collapse_checklist.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def collapse_checklist
  @collapse_checklist
end

#completedObject

Returns the value of attribute completed.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def completed
  @completed
end

#downObject

Returns the value of attribute down.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def down
  @down
end

#every_xObject

Returns the value of attribute every_x.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def every_x
  @every_x
end

#frequencyObject

Returns the value of attribute frequency.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def frequency
  @frequency
end

#historyObject

Returns the value of attribute history.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def history
  @history
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def id
  @id
end

#notesObject

Returns the value of attribute notes.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def notes
  @notes
end

#priorityObject

Returns the value of attribute priority.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def priority
  @priority
end

#repeatObject

Returns the value of attribute repeat.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def repeat
  @repeat
end

#streakObject

Returns the value of attribute streak.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def streak
  @streak
end

#tagsObject

Returns the value of attribute tags.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def tags
  @tags
end

#textObject

Returns the value of attribute text.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def text
  @text
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def type
  @type
end

#upObject

Returns the value of attribute up.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def up
  @up
end

#valueObject

Returns the value of attribute value.



21
22
23
# File 'lib/habitica_client/user/task.rb', line 21

def value
  @value
end