Module: TinyAppstoreConnect::Client::Build
- Included in:
- TinyAppstoreConnect::Client
- Defined in:
- lib/tiny_appstore_connect/clients/build.rb
Instance Method Summary collapse
- #app_builds(id, **query) ⇒ Object
- #app_latest_build(id) ⇒ Object
- #builds(limit: 200, sort: '-uploadedDate', includes: TinyAppstoreConnect::Model::Build::ESSENTIAL_INCLUDES, **query) ⇒ Object
Instance Method Details
#app_builds(id, **query) ⇒ Object
12 13 14 15 |
# File 'lib/tiny_appstore_connect/clients/build.rb', line 12 def app_builds(id, **query) query = query.merge(filter: { app: id }) builds(**query) end |
#app_latest_build(id) ⇒ Object
8 9 10 |
# File 'lib/tiny_appstore_connect/clients/build.rb', line 8 def app_latest_build(id) app_builds(id, limit: 1).to_model end |
#builds(limit: 200, sort: '-uploadedDate', includes: TinyAppstoreConnect::Model::Build::ESSENTIAL_INCLUDES, **query) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/tiny_appstore_connect/clients/build.rb', line 17 def builds(limit: 200, sort: '-uploadedDate', includes: TinyAppstoreConnect::Model::Build::ESSENTIAL_INCLUDES, **query) query = query.merge(limit: limit) .merge(sort: sort) .merge(include: includes) get('builds', **query) end |