Class: AtTheMovies::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/at_the_movies/parser.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#pageObject (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

#parseObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/at_the_movies/parser.rb', line 15

def parse
  raise NotImplementedError, "where am I?"
end