Class: Eac::Parsers::Base
- Inherits:
-
Object
- Object
- Eac::Parsers::Base
- Defined in:
- lib/eac/parsers/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(url) ⇒ Base
constructor
A new instance of Base.
- #url ⇒ Object
Constructor Details
#initialize(url) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/eac/parsers/base.rb', line 10 def initialize(url) @url = url end |
Instance Method Details
#content ⇒ Object
18 19 20 21 22 |
# File 'lib/eac/parsers/base.rb', line 18 def content s = content_by_url_type log_content(s) s end |
#url ⇒ Object
14 15 16 |
# File 'lib/eac/parsers/base.rb', line 14 def url @url.gsub(%r{/+$}, '') end |