Class: Gh::Trending::Parsers::Parser
- Inherits:
-
Object
- Object
- Gh::Trending::Parsers::Parser
- Defined in:
- lib/gh_trending/parsers/parser.rb
Overview
Abstract parser of the trending page.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
Instance Method Summary collapse
-
#initialize(agent = nil) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(agent = nil) ⇒ Parser
Returns a new instance of Parser.
10 11 12 |
# File 'lib/gh_trending/parsers/parser.rb', line 10 def initialize(agent = nil) @agent = agent || default_agent end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
8 9 10 |
# File 'lib/gh_trending/parsers/parser.rb', line 8 def agent @agent end |
Instance Method Details
#parse ⇒ Object
14 15 16 |
# File 'lib/gh_trending/parsers/parser.rb', line 14 def parse raise NotImplementedError end |