<commit_before>require 'ostruct'
require 'forwardable'
require 'time'
require 'hashup'
require 'habit_client/restful'

class HabitClient::User

  # A user task, which can be a habit, daily, or todo.
  class Task < HabitClient::Restful

    require 'habit_client/user/task/date_accessor'
    require 'habit_client/user/task/status'
    require 'habit_client/user/task/type'

    extend DateAccessor
    include Status
    include Type
    extend Hashup

    attr_accessor :id, :text, :notes, :value, :priority, :attribute,
                  :type, :tags, :checklist, :value, :priority,
                  :challenge, :down, :up, :history, :streak,
                  :frequency, :history, :completed, :every_x, :repeat,
                  :collapse_checklist

    date_accessor :date_created, :date_completed, :start_date, :date

    hashup :id, :text, :notes, :value, :priority, :attribute, :type,
           :tags, :checklist, :value, :priority, :challenge, :down,
           :up, :history, :streak, :frequency, :history, :completed,
           :every_x, :repeat, :collapse_checklist

    private

    def endpoint
      '/user/tasks'
    end

  end

end<commit_msg>Added missing attributes to user task<commit_after>require 'ostruct'
require 'forwardable'
require 'time'
require 'hashup'
require 'habit_client/restful'

class HabitClient::User

  # A user task, which can be a habit, daily, or todo.
  class Task < HabitClient::Restful

    require 'habit_client/user/task/date_accessor'
    require 'habit_client/user/task/status'
    require 'habit_client/user/task/type'

    extend DateAccessor
    include Status
    include Type
    extend Hashup

    attr_accessor :id, :text, :notes, :value, :priority, :attribute,
                  :type, :tags, :checklist, :value, :priority,
                  :challenge, :down, :up, :history, :streak,
                  :frequency, :history, :completed, :every_x, :repeat,
                  :collapse_checklist

    date_accessor :date_created, :date_completed, :start_date, :date

    hashup :id, :text, :notes, :value, :priority, :attribute, :type,
           :tags, :checklist, :value, :priority, :challenge, :down,
           :up, :history, :streak, :frequency, :history, :completed,
           :every_x, :repeat, :collapse_checklist, :date_created,
           :date_completed, :start_date, :date

    private

    def endpoint
      '/user/tasks'
    end

  end

end
{'fraction_non_alphanumeric': 0.11594202898550725, 'fraction_numerical': 0.0, 'mean_word_length': 2.9933884297520663, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6861418', 'n_tokens_mistral': 783, 'n_tokens_neox': 741, 'n_words': 204}