class Glima::Resource::History::Event

Attributes

history_id[R]
label_ids[R]
message[R]
type[R]

Public Class Methods

new(history_id:, message:, type:, label_ids: nil) click to toggle source
# File lib/glima/resource/history.rb, line 7
def initialize(history_id:, message:, type:, label_ids: nil)
  @history_id, @message, @type, @label_ids = history_id, message, type, label_ids
end

Public Instance Methods

dump() click to toggle source
# File lib/glima/resource/history.rb, line 11
def dump
  str = "history: #{history_id}, messgae: #{message.id}, type: #{type}"
  str += ", label_ids: #{label_ids.join(',')}" if label_ids
  str
end