Class: Ifconf::NullIpv4Config
- Inherits:
-
Object
- Object
- Ifconf::NullIpv4Config
- Defined in:
- lib/ifconf/null_ipv4_config.rb
Overview
Null object standing in for a missing IPv4 configuration on an interface.
Instance Method Summary collapse
- #address ⇒ Object
- #broadcast ⇒ Object
- #broadcast_address ⇒ Object
- #host_count ⇒ Object
- #host_range ⇒ Object
- #includes_ip?(_) ⇒ Boolean
-
#initialize ⇒ NullIpv4Config
constructor
A new instance of NullIpv4Config.
- #network_address ⇒ Object
- #prefix_length ⇒ Object
- #present? ⇒ Boolean
- #to_cidr_string ⇒ Object
Constructor Details
#initialize ⇒ NullIpv4Config
Returns a new instance of NullIpv4Config.
4 5 6 |
# File 'lib/ifconf/null_ipv4_config.rb', line 4 def initialize freeze end |
Instance Method Details
#address ⇒ Object
8 |
# File 'lib/ifconf/null_ipv4_config.rb', line 8 def address = nil |
#broadcast ⇒ Object
9 |
# File 'lib/ifconf/null_ipv4_config.rb', line 9 def broadcast = nil |
#broadcast_address ⇒ Object
12 |
# File 'lib/ifconf/null_ipv4_config.rb', line 12 def broadcast_address = nil |
#host_count ⇒ Object
15 |
# File 'lib/ifconf/null_ipv4_config.rb', line 15 def host_count = 0 |
#host_range ⇒ Object
13 |
# File 'lib/ifconf/null_ipv4_config.rb', line 13 def host_range = nil |
#includes_ip?(_) ⇒ Boolean
14 |
# File 'lib/ifconf/null_ipv4_config.rb', line 14 def includes_ip?(_) = false |
#network_address ⇒ Object
11 |
# File 'lib/ifconf/null_ipv4_config.rb', line 11 def network_address = nil |
#prefix_length ⇒ Object
10 |
# File 'lib/ifconf/null_ipv4_config.rb', line 10 def prefix_length = nil |
#present? ⇒ Boolean
17 |
# File 'lib/ifconf/null_ipv4_config.rb', line 17 def present? = false |
#to_cidr_string ⇒ Object
16 |
# File 'lib/ifconf/null_ipv4_config.rb', line 16 def to_cidr_string = nil |