Sha256: a037b9b34d46235e992fcbf3c89fa778ffc0d0a69400097d63ae49933455d6d8

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

module Rexpense
  module Entities
    class Comment < Base
      attribute :id, Integer
      attribute :content, String
      attribute :content_html, String
      attribute :mentioned_users, Array[Rexpense::Entities::User]
      attribute :user, Rexpense::Entities::User

      [:created_at, :updated_at, :deleted_at].each { |n| attribute n, DateTime }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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