Class: Bifrossht::HostFilter::Base
- Inherits:
-
Object
- Object
- Bifrossht::HostFilter::Base
- Defined in:
- lib/bifrossht/host_filter/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #apply(host) ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
- #match(_host) ⇒ Object
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
#config ⇒ Object
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 |