myfreecomm/rexpense-client-ruby

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

Summary

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