Sha256: 110c1efae9aaa32515cd4dc204014d15484d2a47d30b67ee5c0dd080ca520807

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

module Things
  class App < Reference::Base
    extend Appscript
    # get the singleton Application instance
    def self.instance
      reference ||= app('Things')
    end
    
    # refresh the Application instance
    def self.instance!
      reference = app('Things')
    end
    
    # get a collection of Lists
    def self.lists
      List
    end
    
    # activate the app and bring it to front
    def self.activate
      instance!.activate
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
things-client-0.2.4 lib/things/app.rb
things-client-0.2.3 lib/things/app.rb
things-client-0.2.2 lib/things/app.rb
things-client-0.2.1 lib/things/app.rb
things-client-0.2.0 lib/things/app.rb