class Bifrossht::Config::HostFilter

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method Bifrossht::Config::Element::new
# File lib/bifrossht/config/host_filter.rb, line 4
def initialize(options = {})
  super

  validate_presence 'type', 'domains'
  validate_type 'type', String
  validate_type 'domains', Array
  validate_type 'prefixes', Array
end

Public Instance Methods

domains() click to toggle source
# File lib/bifrossht/config/host_filter.rb, line 17
def domains
  @options['domains'] || []
end
prefixes() click to toggle source
# File lib/bifrossht/config/host_filter.rb, line 21
def prefixes
  @options['prefixes'] || []
end
type() click to toggle source
# File lib/bifrossht/config/host_filter.rb, line 13
def type
  @options['type']
end