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.



201
202
203
# File 'lib/jsb.rb', line 201

def initialize(parent)
    @parent = parent
end

Instance Method Details

#allObject



205
206
207
# File 'lib/jsb.rb', line 205

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

#app(app_id) ⇒ Object



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

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