Class: Jamf::IPAddress
- Defined in:
- lib/jamf/api/jamf_pro/other_classes/ip_address.rb
Overview
A wrapper for IPAddr - allowing initialize to take an unused cnx: and providing #to_jamf
Instance Method Summary collapse
-
#initialize(an_ip) ⇒ IPAddress
constructor
A new instance of IPAddress.
-
#to_jamf ⇒ String
The IP formatted for passing to the API as a string.
Constructor Details
#initialize(an_ip) ⇒ IPAddress
Returns a new instance of IPAddress.
40 41 42 43 44 45 46 47 48 |
# File 'lib/jamf/api/jamf_pro/other_classes/ip_address.rb', line 40 def initialize(an_ip) if an_ip.nil? @empty_ip = true return end super an_ip end |