Sha256: 970576fc64f3e8c152c999e04dbe823ce111b9fa5f0897ea5944b49128116932

Contents?: true

Size: 947 Bytes

Versions: 4

Compression:

Stored size: 947 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, :update

      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

4 entries across 4 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/file.rb
netsuite-0.9.2 lib/netsuite/records/file.rb
netsuite-0.9.1 lib/netsuite/records/file.rb
netsuite-0.9.0 lib/netsuite/records/file.rb