Sha256: b9e98084c31d9fdc231ea1e41f8ea381020367d3dd4bfe1d20a5ef9e152505dc
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
module Downer class SubclassMethodUndefined < StandardError; end class GenericStrategy def initialize(source, search_options = {}) @url_source = source @search_options = search_options end def options @search_options end def get_urls raise SubclassMethodUndefined end def source_valid? raise SubclassMethodUndefined end def source_type name = self.class.name.gsub(/Downer::DownloadStrategy::/,'') name.gsub(/Strategy/,'').downcase end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
downer-0.3.2 | lib/downer/generic_strategy.rb |
downer-0.3.1 | lib/downer/generic_strategy.rb |
downer-0.3.0 | lib/downer/generic_strategy.rb |