Class: Xberg::HostMatcherExact

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
HostMatcher
Defined in:
lib/xberg/native.rb

Overview

Exact hostname match (case-insensitive).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2601
2602
2603
# File 'lib/xberg/native.rb', line 2601

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2617
2618
2619
# File 'lib/xberg/native.rb', line 2617

def self.from_hash(hash)
  new(value: hash[:value] || hash["value"])
end

Instance Method Details

#cidr?Boolean

Returns:

  • (Boolean)


2613
2614
2615
# File 'lib/xberg/native.rb', line 2613

def cidr? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#exact?Boolean

Returns:

  • (Boolean)


2609
# File 'lib/xberg/native.rb', line 2609

def exact? = true

#suffix?Boolean

Returns:

  • (Boolean)


2611
# File 'lib/xberg/native.rb', line 2611

def suffix? = false