Sha256: 48bebcdcb91cc88373be66bbe7c9f780a85ba41c4efcec706b63e6a95b90db62
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
module Adminix module Entities class Log attr_reader :message, :tag, :created_at def initialize(message, tag = nil) @message = message @tag = tag || 'default' @created_at = Time.now end def to_api { message: message, tag: tag, created_at: created_at } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminix-0.2 | lib/adminix/entities/log.rb |