Sha256: d0776e148c0106f7fda617d6ef8b0f5694aaa6019081e9e477eb56a666e9c476

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

require_relative "../skala"

class Skala::Loan
  include Virtus.model

  attribute :due_date,      Date
  attribute :fine,          Float
  attribute :id,            String, required: true
  attribute :loan_date,     Date
  attribute :record,        Skala::Record
  attribute :renewable,     Axiom::Types::Boolean
  attribute :returned_date, Date
  attribute :signature,     String # a loan references a specific item and needs a specific signature

  def renewable?
    renewable == true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/loan.rb