Class: AtTheMovies::Parser
- Inherits:
-
Object
- Object
- AtTheMovies::Parser
- Defined in:
- lib/at_the_movies/parser.rb
Direct Known Subclasses
AtTheMovies::Parsers::Interview, AtTheMovies::Parsers::Review
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(page) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(page) ⇒ Parser
Returns a new instance of Parser.
11 12 13 |
# File 'lib/at_the_movies/parser.rb', line 11 def initialize(page) @page = page end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
4 5 6 |
# File 'lib/at_the_movies/parser.rb', line 4 def page @page end |
Class Method Details
.parse(page) ⇒ Object
6 7 8 9 |
# File 'lib/at_the_movies/parser.rb', line 6 def self.parse(page) parser = new(page) parser.parse end |
Instance Method Details
#parse ⇒ Object
15 16 17 |
# File 'lib/at_the_movies/parser.rb', line 15 def parse raise NotImplementedError, "where am I?" end |