module IOSConfigProfile::BasicPayload
Public Instance Methods
to_command_payload()
click to toggle source
# File lib/ios_config_profile/basic_payload.rb, line 9 def to_command_payload CommandPayload.new(self) end
to_encrypted_payload()
click to toggle source
# File lib/ios_config_profile/basic_payload.rb, line 13 def to_encrypted_payload EncryptedPayload.new(self) end
uuid()
click to toggle source
# File lib/ios_config_profile/basic_payload.rb, line 3 def uuid # Note that this should be cached so that external code can read the # uuid of a given payload without having to parse the payload itself @uuid ||= random_uuid end
Private Instance Methods
random_uuid()
click to toggle source
# File lib/ios_config_profile/basic_payload.rb, line 19 def random_uuid SecureRandom.uuid end
require_attribute(name)
click to toggle source
# File lib/ios_config_profile/basic_payload.rb, line 27 def require_attribute(name) send(name) || raise(%{Required attribute "#{name}" is not present}) end
require_attributes(*names)
click to toggle source
# File lib/ios_config_profile/basic_payload.rb, line 23 def require_attributes(*names) names.each { |name| require_attribute name } end