myfreecomm/rexpense-client-ruby

View on GitHub
lib/rexpense/entities/pre_expense.rb

Summary

Maintainability
A
0 mins
Test Coverage
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