Sha256: 1c2a19f412b73a9e20b98b39784d5ce22d8a7915b00a95a84c8dcea01d5aa04a

Contents?: true

Size: 856 Bytes

Versions: 3

Compression:

Stored size: 856 Bytes

Contents

module Rexpense
  module Entities
    class Expense < Base
      [:id, :attachments_count, :comments_count, :activities_count,
        :travel_time, :pre_expense_id].each { |n| attribute n, Integer }

      [:description, :currency, :approved_amount_currency, :kind, :status,
        :distance_kind, :destination, :origin].each { |n| attribute n, String }

      [:amount, :approved_amount, :latitude, :longitude, :distance,
        :destination_latitude, :destination_longitude, :origin_longitude,
        :origin_latitude].each { |n| attribute n, Decimal }

      attribute :tags, Array[String]
      attribute :payer, Rexpense::Entities::Organization
      attribute :receiver, Rexpense::Entities::User
      attribute :liquidate_through_advancement, Boolean
      attribute :created_at, DateTime
      attribute :updated_at, DateTime
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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