Sha256: a38925fdd2b0ffd4af96266ead95bb2b5c1be64959d45dbba7de20a6f47f2eec

Contents?: true

Size: 505 Bytes

Versions: 13

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module AutotaskRuby
  # Represents the Autotask Entity Task
  class Task
    include Entity

    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

    def post_initialize
      belongs_to :resource
      belongs_to :project
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
autotask_ruby-2.4.2 lib/autotask_ruby/task.rb
autotask_ruby-2.4.1 lib/autotask_ruby/task.rb
autotask_ruby-2.4.0 lib/autotask_ruby/task.rb
autotask_ruby-2.3.2 lib/autotask_ruby/task.rb
autotask_ruby-2.3.1 lib/autotask_ruby/task.rb
autotask_ruby-2.3.0 lib/autotask_ruby/task.rb
autotask_ruby-2.2.0 lib/autotask_ruby/task.rb
autotask_ruby-2.1.3 lib/autotask_ruby/task.rb
autotask_ruby-2.1.2 lib/autotask_ruby/task.rb
autotask_ruby-2.1.1 lib/autotask_ruby/task.rb
autotask_ruby-2.1.0 lib/autotask_ruby/task.rb
autotask_ruby-2.0.1 lib/autotask_ruby/task.rb
autotask_ruby-2.0.0 lib/autotask_ruby/task.rb