Class: Nzb::Segment

Inherits:
Object
  • Object
show all
Defined in:
lib/nzb/segment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • value

    the value to set the attribute msgid to.



5
6
7
# File 'lib/nzb/segment.rb', line 5

def msgid=(value)
  @msgid = value
end