Class: IOSConfig::Payload::Custom
- Defined in:
- lib/ios_config/payload/custom.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#payload_type ⇒ Object
Returns the value of attribute payload_type.
-
#payload_version ⇒ Object
writeonly
Sets the attribute payload_version.
Attributes inherited from Base
#description, #identifier, #uuid
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Custom
constructor
A new instance of Custom.
Methods inherited from Base
Constructor Details
#initialize(attributes = {}) ⇒ Custom
Returns a new instance of Custom.
7 8 9 10 11 12 13 14 |
# File 'lib/ios_config/payload/custom.rb', line 7 def initialize(attributes = {}) attributes ||= {} [:payload_type, :payload].each do |attribute| raise ArgumentError, "#{attribute} must be specified" unless attributes[attribute] end super(attributes) end |
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload.
5 6 7 |
# File 'lib/ios_config/payload/custom.rb', line 5 def payload @payload end |
#payload_type ⇒ Object
Returns the value of attribute payload_type.
5 6 7 |
# File 'lib/ios_config/payload/custom.rb', line 5 def payload_type @payload_type end |
#payload_version=(value) ⇒ Object
Sets the attribute payload_version
5 6 7 |
# File 'lib/ios_config/payload/custom.rb', line 5 def payload_version=(value) @payload_version = value end |