Sha256: 0e55cb4c51936d7e3bff5b22c6536ae04070d0f92361dfbc54afc25bd4624d9a

Contents?: true

Size: 524 Bytes

Versions: 13

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

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

    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

    def post_initialize
      has_many :tasks
      belongs_to :account
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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