Sha256: f586add3d7c3e03c0f1b570d368fb14bf07335ba01abbb198af8d6a3be8f7696

Contents?: true

Size: 938 Bytes

Versions: 31

Compression:

Stored size: 938 Bytes

Contents

module NetSuite
  module Records
    class File
      include Support::Records
      include Support::Fields
      include Support::RecordRefs
      include Support::Actions
      include Namespaces::FileCabinet

      # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/file.html

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

      fields :content, :description, :name, :media_type_name, :file_type, :text_file_encoding, :created_date, :last_modified_date

      record_refs :folder, :klass

      read_only_fields :url

      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

31 entries across 31 versions & 1 rubygems

Version Path
netsuite-0.8.12 lib/netsuite/records/file.rb
netsuite-0.8.11 lib/netsuite/records/file.rb
netsuite-0.8.10 lib/netsuite/records/file.rb
netsuite-0.8.9 lib/netsuite/records/file.rb
netsuite-0.8.8 lib/netsuite/records/file.rb
netsuite-0.8.7 lib/netsuite/records/file.rb
netsuite-0.8.6 lib/netsuite/records/file.rb
netsuite-0.8.5 lib/netsuite/records/file.rb
netsuite-0.8.4 lib/netsuite/records/file.rb
netsuite-0.8.3 lib/netsuite/records/file.rb
netsuite-0.8.2 lib/netsuite/records/file.rb
netsuite-0.8.1 lib/netsuite/records/file.rb
netsuite-0.8.0 lib/netsuite/records/file.rb
netsuite-0.7.9 lib/netsuite/records/file.rb
netsuite-0.7.8 lib/netsuite/records/file.rb
netsuite-0.7.7 lib/netsuite/records/file.rb
netsuite-0.7.6 lib/netsuite/records/file.rb
netsuite-0.7.5 lib/netsuite/records/file.rb
netsuite-0.7.4 lib/netsuite/records/file.rb
netsuite-0.7.3 lib/netsuite/records/file.rb