Class: Spaceship::ConnectAPI::BuildBundleFileSizes

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

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

Class Method Summary collapse

Methods included from Model

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

Instance Attribute Details

#device_modelObject

Returns the value of attribute device_model.



7
8
9
# File 'spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb', line 7

def device_model
  @device_model
end

#download_bytesObject

Returns the value of attribute download_bytes.



9
10
11
# File 'spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb', line 9

def download_bytes
  @download_bytes
end

#install_bytesObject

Returns the value of attribute install_bytes.



10
11
12
# File 'spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb', line 10

def install_bytes
  @install_bytes
end

#os_versionObject

Returns the value of attribute os_version.



8
9
10
# File 'spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb', line 8

def os_version
  @os_version
end

Class Method Details

.all(client: nil, build_bundle_id: nil, limit: 30) ⇒ Object

API



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

def self.all(client: nil, build_bundle_id: nil, limit: 30)
  client ||= Spaceship::ConnectAPI
  resps = client.get_build_bundles_build_bundle_file_sizes(build_bundle_id: build_bundle_id).all_pages
  resps.flat_map(&:to_models)
end

.typeObject



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

def self.type
  return "buildBundleFileSizes"
end