Class: Buble::AppsResource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ AppsResource

Returns a new instance of AppsResource.



59
60
61
62
# File 'lib/buble/apps.rb', line 59

def initialize(http)
  @http = http
  @generations = AppGenerationsResource.new(http)
end

Instance Attribute Details

#generationsObject (readonly)

Returns the value of attribute generations.



57
58
59
# File 'lib/buble/apps.rb', line 57

def generations
  @generations
end

Instance Method Details

#listObject



64
65
66
# File 'lib/buble/apps.rb', line 64

def list
  @http.request('GET', '/api/v1/apps')
end

#retrieve(app_id) ⇒ Object



68
69
70
# File 'lib/buble/apps.rb', line 68

def retrieve(app_id)
  @http.request('GET', "/api/v1/apps/#{HTTP.encode_segment(app_id)}")
end