Class: Threatinator::Parser
- Inherits:
-
Object
- Object
- Threatinator::Parser
- Defined in:
- lib/threatinator/parser.rb
Direct Known Subclasses
Threatinator::Parsers::CSV::Parser, Threatinator::Parsers::Getline::Parser, Threatinator::Parsers::JSON::Parser, Threatinator::Parsers::XML::Parser
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
-
#initialize(opts = {}) ⇒ Parser
constructor
A new instance of Parser.
-
#run(io) ⇒ Object
Runs the parser against the provided io, yielding records.
Constructor Details
#initialize(opts = {}) ⇒ Parser
Returns a new instance of Parser.
4 5 |
# File 'lib/threatinator/parser.rb', line 4 def initialize(opts = {}) end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/threatinator/parser.rb', line 13 def ==(other) true end |
#eql?(other) ⇒ Boolean
17 18 19 20 |
# File 'lib/threatinator/parser.rb', line 17 def eql?(other) self.class == other.class && self == other end |
#run(io) ⇒ Object
Runs the parser against the provided io, yielding records.
9 10 11 |
# File 'lib/threatinator/parser.rb', line 9 def run(io) raise NotImplementedError.new("#{self.class}#run not implemented!") end |