Sha256: 2d5c2de53a69f93a41b2d026be0592f57eb8fa743583798f60ebee5350143371

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'

module LedgerSync
  class BillLineItem < LedgerSync::Resource
    references_one :account, to: Account
    attribute :amount, type: Type::Integer
    attribute :description, type: Type::String

    def name
      description
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ledger_sync-1.3.2 lib/ledger_sync/resources/bill_line_item.rb
ledger_sync-1.3.1 lib/ledger_sync/resources/bill_line_item.rb