Class: Spaceship::ConnectAPI::BundleId

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

Defined Under Namespace

Modules: Platform

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

#bundle_id_capabilitiesObject

Returns the value of attribute bundle_id_capabilities.



12
13
14
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 12

def bundle_id_capabilities
  @bundle_id_capabilities
end

#identifierObject

Returns the value of attribute identifier.



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

def identifier
  @identifier
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#platformObject

Returns the value of attribute platform.



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

def platform
  @platform
end

#seed_idObject

Returns the value of attribute seed_id.



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

def seed_id
  @seed_id
end

Class Method Details

.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object

API



36
37
38
39
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 36

def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
  resps = Spaceship::ConnectAPI.get_bundle_ids(filter: filter, includes: includes).all_pages
  return resps.flat_map(&:to_models)
end

.get(bundle_id_id: nil, includes: nil) ⇒ Object



41
42
43
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 41

def self.get(bundle_id_id: nil, includes: nil)
  return Spaceship::ConnectAPI.get_bundle_id(bundle_id_id: bundle_id_id, includes: includes).first
end

.typeObject



28
29
30
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id.rb', line 28

def self.type
  return "bundleIds"
end