Class: Xberg::HostMatcherCidr
- Inherits:
-
Data
- Object
- Data
- Xberg::HostMatcherCidr
- Extended by:
- T::Sig
- Includes:
- HostMatcher
- Defined in:
- lib/xberg/native.rb
Overview
CIDR match: "10.0.0.0/8" matches IP addresses in that range.
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
2643 2644 2645 |
# File 'lib/xberg/native.rb', line 2643 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2660 2661 2662 |
# File 'lib/xberg/native.rb', line 2660 def self.from_hash(hash) new(value: hash[:value] || hash["value"]) end |
Instance Method Details
#cidr? ⇒ Boolean
2656 2657 2658 |
# File 'lib/xberg/native.rb', line 2656 def cidr? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#exact? ⇒ Boolean
2652 |
# File 'lib/xberg/native.rb', line 2652 def exact? = false |
#suffix? ⇒ Boolean
2654 |
# File 'lib/xberg/native.rb', line 2654 def suffix? = false |