Class: IOSConfig::Payload::Certificate

Inherits:
Base
  • Object
show all
Defined in:
lib/ios_config/payload/certificate.rb

Instance Attribute Summary

Attributes inherited from Base

#description, #identifier, #uuid

Instance Method Summary collapse

Methods inherited from Base

#build

Constructor Details

#initialize(attributes = {}) ⇒ Certificate

Returns a new instance of Certificate.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/ios_config/payload/certificate.rb', line 15

def initialize(attributes = {})
  attributes ||= {}
  [ :type,
    :filename,
    :cert_path,
    :description,
    :displayname,
    :identifier,
    :organization ].each do |attribute|
    raise ArgumentError, "#{attribute} must be specified" unless attributes[attribute]
  end

  super(attributes)
end