Class: Crawlberg::HostMatcherCidr
- Inherits:
-
Data
- Object
- Data
- Crawlberg::HostMatcherCidr
- Extended by:
- T::Sig
- Includes:
- HostMatcher
- Defined in:
- lib/crawlberg/native.rb
Overview
CIDR match: "10.0.0.0/8" matches IP addresses in that range.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
650 651 652 |
# File 'lib/crawlberg/native.rb', line 650 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
668 669 670 |
# File 'lib/crawlberg/native.rb', line 668 def self.from_hash(hash) new(value: hash[:value] || hash["value"]) end |
Instance Method Details
#cidr? ⇒ Boolean
664 665 666 |
# File 'lib/crawlberg/native.rb', line 664 def cidr? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#exact? ⇒ Boolean
660 |
# File 'lib/crawlberg/native.rb', line 660 def exact? = false |
#suffix? ⇒ Boolean
662 |
# File 'lib/crawlberg/native.rb', line 662 def suffix? = false |