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.



182
183
184
# File 'lib/jsb.rb', line 182

def initialize(parent)
    @parent = parent
end

Instance Method Details

#allObject



186
187
188
# File 'lib/jsb.rb', line 186

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

#app(app_id) ⇒ Object



190
191
192
# File 'lib/jsb.rb', line 190

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