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.



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

def initialize(parent)
    @parent = parent
end

Instance Method Details

#allObject



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

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

#app(app_id) ⇒ Object



223
224
225
# File 'lib/jsb.rb', line 223

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