Class: Nzb::Segment
- Inherits:
-
Object
- Object
- Nzb::Segment
- Defined in:
- lib/nzb/segment.rb
Instance Attribute Summary collapse
-
#msgid ⇒ Object
writeonly
Sets the attribute msgid.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Segment
constructor
A new instance of Segment.
Constructor Details
#initialize(attrs) ⇒ Segment
Returns a new instance of Segment.
7 8 9 10 |
# File 'lib/nzb/segment.rb', line 7 def initialize(attrs) @number = attrs["number"] @bytes = attrs["bytes"] end |
Instance Attribute Details
#msgid=(value) ⇒ Object (writeonly)
Sets the attribute msgid
5 6 7 |
# File 'lib/nzb/segment.rb', line 5 def msgid=(value) @msgid = value end |