Sha256: 1e72ec85867c27a58862ac606ec23e63eaa7075898c21fbcecfad733c37e84fb

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

Stored size: 1.01 KB

Contents

module NetSuite
  module Records
    class Task
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ActSched

      actions :get, :get_list, :add, :search, :delete, :update, :upsert

      fields :title, :send_email, :message, :status, :access_level, :reminder_type,
             :reminder_minutes, :start_date, :end_date, :due_date, :timed_event,
             :created_date, :last_modified_date, :priority

      field :contact_list, ContactList
      field :custom_field_list, CustomFieldList

      record_refs :assigned, :owner, :company, :contact, :transaction

      attr_reader   :internal_id
      attr_accessor :external_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
        initialize_from_attributes_hash(attributes)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/task.rb
netsuite-0.9.2 lib/netsuite/records/task.rb
netsuite-0.9.1 lib/netsuite/records/task.rb
netsuite-0.9.0 lib/netsuite/records/task.rb
netsuite-0.8.12 lib/netsuite/records/task.rb
netsuite-0.8.11 lib/netsuite/records/task.rb
netsuite-0.8.10 lib/netsuite/records/task.rb
netsuite-0.8.9 lib/netsuite/records/task.rb
netsuite-0.8.8 lib/netsuite/records/task.rb
netsuite-0.8.7 lib/netsuite/records/task.rb
netsuite-0.8.6 lib/netsuite/records/task.rb
netsuite-0.8.5 lib/netsuite/records/task.rb
netsuite-0.8.4 lib/netsuite/records/task.rb
netsuite-0.8.3 lib/netsuite/records/task.rb
netsuite-0.8.2 lib/netsuite/records/task.rb