Module: TinyAppstoreConnect::Client::App
- Included in:
- TinyAppstoreConnect::Client
- Defined in:
- lib/tiny_appstore_connect/clients/app.rb
Instance Method Summary collapse
- #app(id, **query) ⇒ Object
- #app_edit_version(id, includes: TinyAppstoreConnect::Model::AppStoreVersion::ESSENTIAL_INCLUDES) ⇒ Object
- #app_live_version(id, includes: TinyAppstoreConnect::Model::AppStoreVersion::ESSENTIAL_INCLUDES) ⇒ Object
- #app_versions(id, **query) ⇒ Object
- #apps(**query) ⇒ Object
Instance Method Details
#app(id, **query) ⇒ Object
12 13 14 |
# File 'lib/tiny_appstore_connect/clients/app.rb', line 12 def app(id, **query) get("apps/#{id}", **query).to_model end |
#app_edit_version(id, includes: TinyAppstoreConnect::Model::AppStoreVersion::ESSENTIAL_INCLUDES) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/tiny_appstore_connect/clients/app.rb', line 20 def app_edit_version(id, includes: TinyAppstoreConnect::Model::AppStoreVersion::ESSENTIAL_INCLUDES) filters = { appStoreState: [ TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::PREPARE_FOR_SUBMISSION, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::DEVELOPER_REJECTED, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::REJECTED, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::METADATA_REJECTED, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::WAITING_FOR_REVIEW, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::INVALID_BINARY, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::IN_REVIEW, TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::PENDING_DEVELOPER_RELEASE ].join(',') } app_versions(id, include: includes, filter: filters).to_model end |
#app_live_version(id, includes: TinyAppstoreConnect::Model::AppStoreVersion::ESSENTIAL_INCLUDES) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/tiny_appstore_connect/clients/app.rb', line 37 def app_live_version(id, includes: TinyAppstoreConnect::Model::AppStoreVersion::ESSENTIAL_INCLUDES) filters = { appStoreState: TinyAppstoreConnect::Model::AppStoreVersion::AppStoreState::READY_FOR_SALE } app_versions(id, include: includes, filter: filters).to_model end |
#app_versions(id, **query) ⇒ Object
16 17 18 |
# File 'lib/tiny_appstore_connect/clients/app.rb', line 16 def app_versions(id, **query) get("apps/#{id}/appStoreVersions", **query) end |
#apps(**query) ⇒ Object
8 9 10 |
# File 'lib/tiny_appstore_connect/clients/app.rb', line 8 def apps(**query) get('apps', **query) end |