myfreecomm/rexpense-client-ruby

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

Summary

Maintainability
A
55 mins
Test Coverage
module Rexpense
  module Entities
    class Reimbursement < Base
      [:id, :comments_count, :activities_count].each { |n| attribute n, Integer }
      [:description, :currency].each { |n| attribute n, String }
      attribute :amount, Decimal
      attribute :tags, Array[String]
      attribute :created_at, DateTime
      attribute :updated_at, DateTime
      attribute :payer, Rexpense::Entities::Organization
      attribute :receiver, Rexpense::Entities::User
    end
  end
end