Class: Xberg::HostMatcherSuffix

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

Overview

Suffix match: ".xberg.io" matches "api.xberg.io" and "xberg.io".

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



2622
2623
2624
# File 'lib/xberg/native.rb', line 2622

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2638
2639
2640
# File 'lib/xberg/native.rb', line 2638

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

Instance Method Details

#cidr?Boolean

Returns:

  • (Boolean)


2634
2635
2636
# File 'lib/xberg/native.rb', line 2634

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

#exact?Boolean

Returns:

  • (Boolean)


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

def exact? = false

#suffix?Boolean

Returns:

  • (Boolean)


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

def suffix? = true