Class: WebPage
- Inherits:
-
Object
- Object
- WebPage
- Defined in:
- lib/ribit/webpage.rb
Instance Method Summary collapse
- #get_content_type ⇒ Object
- #get_data ⇒ Object
-
#initialize ⇒ WebPage
constructor
A new instance of WebPage.
- #output_page(pageResponse) ⇒ Object
Constructor Details
#initialize ⇒ WebPage
Returns a new instance of WebPage.
36 37 |
# File 'lib/ribit/webpage.rb', line 36 def initialize end |
Instance Method Details
#get_content_type ⇒ Object
51 52 53 |
# File 'lib/ribit/webpage.rb', line 51 def get_content_type raise 'WebPage.get_content_type() should be overriden in subclasses' end |
#get_data ⇒ Object
46 47 48 |
# File 'lib/ribit/webpage.rb', line 46 def get_data raise 'WebPage.get_data() should be overriden in subclasses' end |
#output_page(pageResponse) ⇒ Object
40 41 42 43 |
# File 'lib/ribit/webpage.rb', line 40 def output_page( pageResponse ) pageResponse.set_body( get_data() ) pageResponse.set_content_type( get_content_type() ) end |