Class: Ice::LogMessage
- Inherits:
-
Object
- Object
- Ice::LogMessage
- Includes:
- Inspect_mixin
- Defined in:
- ruby/Ice/RemoteLogger.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#traceCategory ⇒ Object
Returns the value of attribute traceCategory.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(type = ::Ice::LogMessageType::PrintMessage, timestamp = 0, traceCategory = '', message = '') ⇒ LogMessage
constructor
A new instance of LogMessage.
Methods included from Inspect_mixin
Constructor Details
#initialize(type = ::Ice::LogMessageType::PrintMessage, timestamp = 0, traceCategory = '', message = '') ⇒ LogMessage
Returns a new instance of LogMessage.
67 68 69 70 71 72 |
# File 'ruby/Ice/RemoteLogger.rb', line 67 def initialize(type=::Ice::LogMessageType::PrintMessage, =0, traceCategory='', ='') @type = type @timestamp = @traceCategory = traceCategory @message = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
96 97 98 |
# File 'ruby/Ice/RemoteLogger.rb', line 96 def @message end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
96 97 98 |
# File 'ruby/Ice/RemoteLogger.rb', line 96 def @timestamp end |
#traceCategory ⇒ Object
Returns the value of attribute traceCategory.
96 97 98 |
# File 'ruby/Ice/RemoteLogger.rb', line 96 def traceCategory @traceCategory end |
#type ⇒ Object
Returns the value of attribute type.
96 97 98 |
# File 'ruby/Ice/RemoteLogger.rb', line 96 def type @type end |
Instance Method Details
#==(other) ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'ruby/Ice/RemoteLogger.rb', line 83 def ==(other) return false if !other.is_a? ::Ice::LogMessage or @type != other.type or @timestamp != other. or @traceCategory != other.traceCategory or @message != other. true end |
#eql?(other) ⇒ Boolean
92 93 94 |
# File 'ruby/Ice/RemoteLogger.rb', line 92 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'ruby/Ice/RemoteLogger.rb', line 74 def hash _h = 0 _h = 5 * _h + @type.hash _h = 5 * _h + @timestamp.hash _h = 5 * _h + @traceCategory.hash _h = 5 * _h + @message.hash _h % 0x7fffffff end |