Class: LogRow

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/sprockets_fs/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_idObject

Returns the value of attribute _id.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def _id
  @_id
end

#base_lineObject

Returns the value of attribute base_line.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def base_line
  @base_line
end

#callerObject

Returns the value of attribute caller.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def caller
  @caller
end

#dtObject

Returns the value of attribute dt.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def dt
  @dt
end

#libraryObject

Returns the value of attribute library.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def library
  @library
end

#library_lineObject

Returns the value of attribute library_line.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def library_line
  @library_line
end

#messageObject

Returns the value of attribute message.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def message
  @message
end

#specObject

Returns the value of attribute spec.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def spec
  @spec
end

#spec_lineObject

Returns the value of attribute spec_line.



138
139
140
# File 'lib/sprockets_fs/log.rb', line 138

def spec_line
  @spec_line
end

Instance Method Details

#<=>(r) ⇒ Object



145
146
147
# File 'lib/sprockets_fs/log.rb', line 145

def <=>(r)
  dt <=> r.dt
end

#to_ssObject



140
141
142
143
# File 'lib/sprockets_fs/log.rb', line 140

def to_ss
  c = [caller,library].select { |x| x }.join(" ").rpad(25)
  "#{dt.short} From #{c} | #{spec.rpad(20)}: #{message[0...18000]}"
end