Class: Bifrossht::HostFilter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bifrossht/host_filter/base.rb

Direct Known Subclasses

SearchDomain

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/bifrossht/host_filter/base.rb', line 6

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



4
5
6
# File 'lib/bifrossht/host_filter/base.rb', line 4

def config
  @config
end

Instance Method Details

#apply(host) ⇒ Object



14
15
16
# File 'lib/bifrossht/host_filter/base.rb', line 14

def apply(host)
  host
end

#match(_host) ⇒ Object



10
11
12
# File 'lib/bifrossht/host_filter/base.rb', line 10

def match(_host)
  false
end