Class: Xberg::HostMatcherSuffix
- Inherits:
-
Data
- Object
- Data
- Xberg::HostMatcherSuffix
- 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
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute 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
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
2630 |
# File 'lib/xberg/native.rb', line 2630 def exact? = false |
#suffix? ⇒ Boolean
2632 |
# File 'lib/xberg/native.rb', line 2632 def suffix? = true |