class Nzb::File
- Nzb::File
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
nzb/file.crConstructors
- .from_xml(xml) : File
- .new(poster : String, date : Time, subject : String, groups : Array(String) = Array(String).new, segments : Array(Nzb::Segment) = Array(Segment).new, metadata : Hash(String, String) = Hash(String, String).new)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #date : Time
- #date=(date : Time)
- #groups : Array(String)
- #groups=(groups : Array(String))
- #metadata : Hash(String, String)
- #metadata=(metadata : Hash(String, String))
- #poster : String
- #poster=(poster : String)
- #segments : Array(Segment)
- #segments=(segments : Array(Segment))
- #subject : String
- #subject=(subject : String)
- #to_xml(xml)
Constructor Detail
def self.new(poster : String, date : Time, subject : String, groups : Array(String) = Array(String).new, segments : Array(Nzb::Segment) = Array(Segment).new, metadata : Hash(String, String) = Hash(String, String).new)
#