Class: Nzb::File
- Inherits:
-
Object
- Object
- Nzb::File
- Defined in:
- lib/nzb/file.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#segments ⇒ Object
Returns the value of attribute segments.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
- #add_group(name) ⇒ Object
- #add_segment(attrs) ⇒ Object
-
#initialize(attrs) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(attrs) ⇒ File
Returns a new instance of File.
7 8 9 10 11 12 13 14 |
# File 'lib/nzb/file.rb', line 7 def initialize(attrs) @segments = [] @groups = [] @subject = attrs["subject"] @filename = "" @poster = attrs["poster"] @date = attrs["date"] end |
Instance Attribute Details
#groups ⇒ Object
Returns the value of attribute groups.
5 6 7 |
# File 'lib/nzb/file.rb', line 5 def groups @groups end |
#segments ⇒ Object
Returns the value of attribute segments.
5 6 7 |
# File 'lib/nzb/file.rb', line 5 def segments @segments end |
#subject ⇒ Object
Returns the value of attribute subject.
5 6 7 |
# File 'lib/nzb/file.rb', line 5 def subject @subject end |