Sha256: b567fe3541f7b087b86120004c4c02d1b32d6538a47e2d0aa8357e16617e812b

Contents?: true

Size: 955 Bytes

Versions: 4

Compression:

Stored size: 955 Bytes

Contents

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

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

      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

      field :contact_list, ContactList

      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

4 entries across 4 versions & 1 rubygems

Version Path
netsuite-0.2.3 lib/netsuite/records/task.rb
netsuite-0.2.2 lib/netsuite/records/task.rb
netsuite-0.2.1 lib/netsuite/records/task.rb
netsuite-0.2.0 lib/netsuite/records/task.rb