Class: Spaceship::ConnectAPI::BuildDelivery
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::BuildDelivery
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/build_delivery.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.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#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_delivery.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_delivery.rb', line 7 def cf_build_version @cf_build_version end |
#platform ⇒ Object
Returns the value of attribute platform.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/build_delivery.rb', line 9 def platform @platform end |
#uploaded_date ⇒ Object
Returns the value of attribute uploaded_date.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/build_delivery.rb', line 10 def uploaded_date @uploaded_date end |
Class Method Details
.all(client: nil, app_id: nil, version: nil, build_number: nil) ⇒ Object
API
27 28 29 30 31 32 33 34 35 |
# File 'spaceship/lib/spaceship/connect_api/models/build_delivery.rb', line 27 def self.all(client: nil, app_id: nil, version: nil, build_number: nil) client ||= Spaceship::ConnectAPI resps = client.get_build_deliveries( app_id: app_id, filter: { cfBundleShortVersionString: version, cfBundleVersion: build_number }, limit: 1 ).all_pages return resps.flat_map(&:to_models) end |
.type ⇒ Object
19 20 21 |
# File 'spaceship/lib/spaceship/connect_api/models/build_delivery.rb', line 19 def self.type return "buildDeliveries" end |