Sha256: f2cd8ddcc8aa2d48050bcd10164a1f68b3d158c4c5b34e396344e5fc6f61b808

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Department < QuickBooksOnline::Resource
        attribute :Name, type: Type::String
        attribute :FullyQualifiedName, type: Type::String
        attribute :Active, type: Type::Boolean
        attribute :SubDepartment, type: Type::Boolean

        references_one :Parent, to: Department

        def name
          self.Name
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/resources/department.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/resources/department.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/resources/department.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/resources/department.rb