Class: AutotaskRuby::Project

Inherits:
Object
  • Object
show all
Includes:
Entity
Defined in:
lib/autotask_ruby/project.rb

Overview

Represents the Autotask Entity Project

Constant Summary collapse

FIELDS =
%i[id ProjectName AccountID Type ProjectNumber Description CreateDateTime StartDateTime
            EndDateTime Duration EstimatedTime Status ProjectLeadResourceID StatusDetail StatusDateTime].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_initializeObject



14
15
16
17
# File 'lib/autotask_ruby/project.rb', line 14

def post_initialize
  has_many :tasks
  belongs_to :account
end