Class: IPAddr
- Extended by:
- JamfRubyExtensions::IPAddr::Utils
- Defined in:
- lib/jamf/ruby_extensions/ipaddr.rb
Overview
A few augmentations to IPAddr handling.
Direct Known Subclasses
Class Method Summary collapse
-
.j_cidr_from_ends(starting, ending) ⇒ FixNum
(also: #jss_cidr_from_ends)
extended
from JamfRubyExtensions::IPAddr::Utils
Given starting and ending IPv4 IP addresses (either Strings or IPAddrs) return the CIDR notation routing prefix mask.
-
.j_ending_address(starting, cidr) ⇒ IPAddr
(also: #jss_ending_address)
extended
from JamfRubyExtensions::IPAddr::Utils
Convert a starting address (either String or IPAddr) and a CIDR notation routing prefix mask into the IPv4 address of at the end of the range of addresses.
-
.j_masked_v4addr(starting, ending) ⇒ IPAddr
(also: #jss_masked_v4addr)
extended
from JamfRubyExtensions::IPAddr::Utils
Convert starting and ending IPv4 IP addresses (either Strings or IPAddrs) into a single masked IPv4 IPAddr.
Class Method Details
.j_cidr_from_ends(starting, ending) ⇒ FixNum Also known as: jss_cidr_from_ends Originally defined in module JamfRubyExtensions::IPAddr::Utils
Given starting and ending IPv4 IP addresses (either Strings or IPAddrs) return the CIDR notation routing prefix mask
.j_ending_address(starting, cidr) ⇒ IPAddr Also known as: jss_ending_address Originally defined in module JamfRubyExtensions::IPAddr::Utils
Convert a starting address (either String or IPAddr) and a CIDR notation routing prefix mask into the IPv4 address of at the end of the range of addresses.
.j_masked_v4addr(starting, ending) ⇒ IPAddr Also known as: jss_masked_v4addr Originally defined in module JamfRubyExtensions::IPAddr::Utils
Convert starting and ending IPv4 IP addresses (either Strings or IPAddrs) into a single masked IPv4 IPAddr