Class: Buble::AppsResource
- Inherits:
-
Object
- Object
- Buble::AppsResource
- Defined in:
- lib/buble/apps.rb
Instance Attribute Summary collapse
-
#generations ⇒ Object
readonly
Returns the value of attribute generations.
Instance Method Summary collapse
-
#initialize(http) ⇒ AppsResource
constructor
A new instance of AppsResource.
- #list ⇒ Object
- #retrieve(app_id) ⇒ Object
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
#generations ⇒ Object (readonly)
Returns the value of attribute generations.
57 58 59 |
# File 'lib/buble/apps.rb', line 57 def generations @generations end |
Instance Method Details
#list ⇒ Object
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 |