Class: SiriButton

Inherits:
SiriObject show all
Defined in:
lib/siri_objects.rb

Instance Attribute Summary

Attributes inherited from SiriObject

#group, #klass, #properties

Instance Method Summary collapse

Methods inherited from SiriObject

#make_root, #to_hash

Constructor Details

#initialize(text = "Button Text", commands = []) ⇒ SiriButton

Returns a new instance of SiriButton.



123
124
125
126
127
# File 'lib/siri_objects.rb', line 123

def initialize(text="Button Text", commands=[])
  super("Button", "com.apple.ace.assistant")
  self.text = text
  self.commands = commands
end