Module: MetasploitDataModels::IPAddress::Range
- Extended by:
- ActiveModel::Naming, ActiveSupport::Concern
- Included in:
- V4::Range, V4::Segment::Nmap::Range
- Defined in:
- lib/metasploit_data_models/ip_address/range.rb
Overview
Common behavior for ranges under MetasploitDataModels::IPAddress, including ranges of addresses and segments.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- SEPARATOR =
'-'
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#begin ⇒ MetasploitDataModels::IPAddress::V4::NMAP::Segment::Number?
Begin of segment range.
-
#end ⇒ MetasploitDataModels::IPAddress::V4::NMAP::Segment::Number?
End of segment range.
-
#to_s ⇒ String
This range as a string.
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
24 25 26 |
# File 'lib/metasploit_data_models/ip_address/range.rb', line 24 def value @value end |
Instance Method Details
#begin ⇒ MetasploitDataModels::IPAddress::V4::NMAP::Segment::Number?
Begin of segment range.
116 117 118 119 120 |
# File 'lib/metasploit_data_models/ip_address/range.rb', line 116 def begin if value.respond_to? :begin value.begin end end |
#end ⇒ MetasploitDataModels::IPAddress::V4::NMAP::Segment::Number?
End of segment range.
126 127 128 129 130 |
# File 'lib/metasploit_data_models/ip_address/range.rb', line 126 def end if value.respond_to? :end value.end end end |