Class: Spaceship::ConnectAPI::BuildUpload
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::BuildUpload
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/build_upload.rb
Instance Attribute Summary collapse
-
#cf_build_short_version_string ⇒ Object
Returns the value of attribute cf_build_short_version_string.
-
#cf_build_version ⇒ Object
Returns the value of attribute cf_build_version.
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#state ⇒ Object
Returns the value of attribute state.
-
#uploaded_date ⇒ Object
Returns the value of attribute uploaded_date.
Attributes included from Model
Class Method Summary collapse
Methods included from Model
#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes
Instance Attribute Details
#cf_build_short_version_string ⇒ Object
Returns the value of attribute cf_build_short_version_string.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 8 def cf_build_short_version_string @cf_build_short_version_string end |
#cf_build_version ⇒ Object
Returns the value of attribute cf_build_version.
7 8 9 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 7 def cf_build_version @cf_build_version end |
#created_date ⇒ Object
Returns the value of attribute created_date.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 9 def created_date @created_date end |
#platform ⇒ Object
Returns the value of attribute platform.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 11 def platform @platform end |
#state ⇒ Object
Returns the value of attribute state.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 10 def state @state end |
#uploaded_date ⇒ Object
Returns the value of attribute uploaded_date.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 12 def uploaded_date @uploaded_date end |
Class Method Details
.all(client: nil, app_id: nil, version: nil, build_number: nil) ⇒ Object
API
31 32 33 34 35 36 37 38 39 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 31 def self.all(client: nil, app_id: nil, version: nil, build_number: nil) client ||= Spaceship::ConnectAPI resps = client.get_build_uploads( app_id: app_id, filter: { cfBundleShortVersionString: version, cfBundleVersion: build_number }, limit: 1 ).all_pages return resps.flat_map(&:to_models) end |
.type ⇒ Object
23 24 25 |
# File 'spaceship/lib/spaceship/connect_api/models/build_upload.rb', line 23 def self.type return "buildUploads" end |