Class: IOSConfigProfile::WebClipPayload

Inherits:
Hash
  • Object
show all
Includes:
BasicPayload
Defined in:
lib/ios_config_profile/content/web_clip_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, label, icon) ⇒ WebClipPayload

Returns a new instance of WebClipPayload.



7
8
9
10
11
12
13
# File 'lib/ios_config_profile/content/web_clip_payload.rb', line 7

def initialize(url, label, icon)
  self.url = url
  self.label = label
  self.icon = icon
  require_attributes :url, :label
  merge! web_clip_payload
end

Instance Attribute Details

#iconObject

Returns the value of attribute icon.



5
6
7
# File 'lib/ios_config_profile/content/web_clip_payload.rb', line 5

def icon
  @icon
end

#labelObject

Returns the value of attribute label.



5
6
7
# File 'lib/ios_config_profile/content/web_clip_payload.rb', line 5

def label
  @label
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/ios_config_profile/content/web_clip_payload.rb', line 5

def url
  @url
end