Class: Things::App

Inherits:
Reference::Base show all
Extended by:
Appscript
Defined in:
lib/things/app.rb

Instance Attribute Summary

Attributes inherited from Reference::Base

#reference

Class Method Summary collapse

Class Method Details

.activateObject

activate the app and bring it to front



20
21
22
# File 'lib/things/app.rb', line 20

def self.activate
  instance!.activate
end

.instanceObject

get the singleton Application instance



5
6
7
# File 'lib/things/app.rb', line 5

def self.instance
  reference ||= app('Things')
end

.instance!Object

refresh the Application instance



10
11
12
# File 'lib/things/app.rb', line 10

def self.instance!
  reference = app('Things')
end

.listsObject

get a collection of Lists



15
16
17
# File 'lib/things/app.rb', line 15

def self.lists
  List
end