Class: JSB::Apps

Inherits:
Object
  • Object
show all
Defined in:
lib/jsb.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ Apps

Returns a new instance of Apps.



210
211
212
# File 'lib/jsb.rb', line 210

def initialize(parent)
    @parent = parent
end

Instance Method Details

#allObject



214
215
216
# File 'lib/jsb.rb', line 214

def all
    @parent.api["/apps"].get :accept => :json
end

#app(app_id) ⇒ Object



218
219
220
# File 'lib/jsb.rb', line 218

def app(app_id)
    @parent.api["/apps/#{app_id}"].get :accept => :json
end