Sha256: 6834c149d52df8590dea478e5a2eaad3aa67b3f46fa4cd7486808574d21c7793

Contents?: true

Size: 618 Bytes

Versions: 11

Compression:

Stored size: 618 Bytes

Contents

module NetSuite
  module Records
    class Department
      include Support::Fields
      include Support::RecordRefs
      include Support::Actions

      actions :get, :add, :delete

      fields :name, :is_inactive
      
      record_refs :parent

      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

11 entries across 11 versions & 1 rubygems

Version Path
netsuite-0.2.6 lib/netsuite/records/department.rb
netsuite-0.2.5 lib/netsuite/records/department.rb
netsuite-0.2.4 lib/netsuite/records/department.rb
netsuite-0.2.3 lib/netsuite/records/department.rb
netsuite-0.2.2 lib/netsuite/records/department.rb
netsuite-0.2.1 lib/netsuite/records/department.rb
netsuite-0.2.0 lib/netsuite/records/department.rb
netsuite-0.1.0 lib/netsuite/records/department.rb
netsuite-0.0.50 lib/netsuite/records/department.rb
netsuite-0.0.49 lib/netsuite/records/department.rb
netsuite-0.0.48 lib/netsuite/records/department.rb