Sha256: 4156ed81de618d758a34f0406c2109a62ac85bc666439918808b2dbc63a3e02d

Contents?: true

Size: 961 Bytes

Versions: 12

Compression:

Stored size: 961 Bytes

Contents

module NetSuite
  module Records
    class Message
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::CommGeneral

      actions :get, :add, :delete, :search
      
      fields :bcc, :cc, :compress_attachments, :date_time, :emailed, :incoming,
             :message, :record_name, :record_type_name, :subject

      read_only_fields :last_modified_date, :message_date

      record_refs :activity, :author, :recipient, :transaction

      attr_reader :internal_id
      attr_accessor :external_id

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

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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