Class: IOSConfig::Payload::Custom

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

Instance Attribute Summary collapse

Attributes inherited from Base

#description, #identifier, #uuid

Instance Method Summary collapse

Methods inherited from Base

#build

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

#payloadObject

Returns the value of attribute payload.



5
6
7
# File 'lib/ios_config/payload/custom.rb', line 5

def payload
  @payload
end

#payload_typeObject

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

Parameters:

  • value

    the value to set the attribute payload_version to.



5
6
7
# File 'lib/ios_config/payload/custom.rb', line 5

def payload_version=(value)
  @payload_version = value
end