Class: SSHKit::LogMessage
- Inherits:
-
Object
- Object
- SSHKit::LogMessage
- Defined in:
- lib/sshkit/log_message.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#verbosity ⇒ Object
readonly
Returns the value of attribute verbosity.
Instance Method Summary collapse
-
#initialize(verbosity, message) ⇒ LogMessage
constructor
A new instance of LogMessage.
- #to_s ⇒ Object
Constructor Details
#initialize(verbosity, message) ⇒ LogMessage
Returns a new instance of LogMessage.
5 6 7 |
# File 'lib/sshkit/log_message.rb', line 5 def initialize(verbosity, ) @verbosity, @message = verbosity, end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/sshkit/log_message.rb', line 4 def @message end |
#verbosity ⇒ Object (readonly)
Returns the value of attribute verbosity.
4 5 6 |
# File 'lib/sshkit/log_message.rb', line 4 def verbosity @verbosity end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/sshkit/log_message.rb', line 8 def to_s @message.to_s.strip end |