Class: NNTP::Status
- Inherits:
-
Struct
- Object
- Struct
- NNTP::Status
- Defined in:
- lib/nntp/status.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#msg ⇒ Object
Returns the value of attribute msg.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
2 3 4 |
# File 'lib/nntp/status.rb', line 2 def code @code end |
#msg ⇒ Object
Returns the value of attribute msg
2 3 4 |
# File 'lib/nntp/status.rb', line 2 def msg @msg end |
Instance Method Details
#to_s ⇒ Object
3 4 5 |
# File 'lib/nntp/status.rb', line 3 def to_s "#{self[:code]} #{self[:msg]}" end |