Sha256: 293f7332aa0eac4fa0beeda583e02e175c9f5305968d57427aff2c332b155dcb

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

module Rexpense
  module Entities
    class PreExpense < Base
      attribute :id, Integer
      attribute :amount, Decimal

      [:description, :currency].each { |n| attribute n, String }

      [:created_at, :converted_at, :updated_at,
       :ignored_at, :occurred_at].each { |n| attribute n, String }

      attribute :tags, Array[String]
      attribute :payer, Rexpense::Entities::Organization
      attribute :receiver, Rexpense::Entities::User
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rexpense-2.1.0 lib/rexpense/entities/pre_expense.rb
rexpense-2.0.0 lib/rexpense/entities/pre_expense.rb
rexpense-1.0.0 lib/rexpense/entities/pre_expense.rb