Class: AutotaskRuby::Task
- Inherits:
-
Object
- Object
- AutotaskRuby::Task
- Includes:
- Entity
- Defined in:
- lib/autotask_ruby/task.rb
Overview
Represents the Autotask Entity Task
Constant Summary collapse
- FIELDS =
%i[id AllocationCodeID AssignedResourceID CreateDateTime DepartmentID Description EstimatedHours LastActivityDateTime ProjectID Status TaskNumber TaskType Title ].freeze .each do |field| attr_accessor :"#{field.to_s.underscore}" end
Constants included from Constants
Constants::AUTOTASK_TIME_FORMAT
Instance Method Summary collapse
Methods included from Entity
#build, #create, #field_set, #fields_to_xml, #format_field_to_xml, included, #initialize, #to_bool, #to_date_time, #update
Methods included from Association
#belongs_to, #has_many, #has_one
Instance Method Details
#post_initialize ⇒ Object
14 15 16 17 |
# File 'lib/autotask_ruby/task.rb', line 14 def post_initialize belongs_to :resource belongs_to :project end |