Class: Eac::Parsers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/eac/parsers/base.rb

Direct Known Subclasses

Ofx

Instance Method Summary collapse

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

#contentObject



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

#urlObject



14
15
16
# File 'lib/eac/parsers/base.rb', line 14

def url
  @url.gsub(%r{/+$}, '')
end