Sha256: 45a56ea55efe686f48887781f1050bf1a08272952fd575529e2326af90a3b28b

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

module Rexpense
  module Entities
    class Advancement < 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

Version data entries

3 entries across 3 versions & 1 rubygems

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