Class: Spaceship::ConnectAPI::BuildDelivery

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/build_delivery.rb

Instance Attribute Summary collapse

Attributes included from Model

#id

Class Method Summary collapse

Methods included from Model

#attr_mapping, included, #initialize, #to_json, #update_attributes

Instance Attribute Details

#cf_build_short_version_stringObject

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_versionObject

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

#platformObject

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_dateObject

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(app_id: nil, version: nil, build_number: nil) ⇒ Object

API



27
28
29
30
31
32
33
# File 'spaceship/lib/spaceship/connect_api/models/build_delivery.rb', line 27

def self.all(app_id: nil, version: nil, build_number: nil)
  resps = Spaceship::ConnectAPI.get_build_deliveries(
    filter: { app: app_id, cfBundleShortVersionString: version, cfBundleVersion: build_number },
    limit: 1
  ).all_pages
  return resps.flat_map(&:to_models)
end

.typeObject



19
20
21
# File 'spaceship/lib/spaceship/connect_api/models/build_delivery.rb', line 19

def self.type
  return "buildDeliveries"
end