Class: IOSConfigProfile::DEPPayload

Inherits:
Hash
  • Object
show all
Includes:
BasicPayload
Defined in:
lib/ios_config_profile/device/dep_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BasicPayload

#to_command_payload, #to_encrypted_payload, #uuid

Constructor Details

#initialize(url, topic, identity_cert, identity_cert_password) ⇒ DEPPayload

Returns a new instance of DEPPayload.



7
8
9
10
11
12
13
14
# File 'lib/ios_config_profile/device/dep_payload.rb', line 7

def initialize(url, topic, identity_cert, identity_cert_password)
  @url = url
  @topic = topic
  @identity_cert = identity_cert
  @identity_cert_password = identity_cert_password
  require_attributes :url, :topic, :identity_cert, :identity_cert_password
  merge! dep_payload
end

Instance Attribute Details

#identity_certObject (readonly)

Returns the value of attribute identity_cert.



5
6
7
# File 'lib/ios_config_profile/device/dep_payload.rb', line 5

def identity_cert
  @identity_cert
end

#identity_cert_passwordObject (readonly)

Returns the value of attribute identity_cert_password.



5
6
7
# File 'lib/ios_config_profile/device/dep_payload.rb', line 5

def identity_cert_password
  @identity_cert_password
end

#topicObject (readonly)

Returns the value of attribute topic.



5
6
7
# File 'lib/ios_config_profile/device/dep_payload.rb', line 5

def topic
  @topic
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/ios_config_profile/device/dep_payload.rb', line 5

def url
  @url
end