Class: Spaceship::ConnectAPI::BundleIdCapability

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

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Model

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

Instance Attribute Details

#capability_typeObject

Returns the value of attribute capability_type.



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

def capability_type
  @capability_type
end

#settingsObject

Returns the value of attribute settings.



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

def settings
  @settings
end

Class Method Details

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

API



62
63
64
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb', line 62

def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
  return users_client.get_users(filter: filter, includes: includes)
end

.find(email: nil, includes: nil) ⇒ Object



66
67
68
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb', line 66

def self.find(email: nil, includes: nil)
  return all(filter: { email: email }, includes: includes)
end

.typeObject



44
45
46
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb', line 44

def self.type
  return "bundleIdCapabilities"
end

Instance Method Details

#is_type?(type) ⇒ Boolean

Helpers

Returns:

  • (Boolean)


52
53
54
55
56
# File 'spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb', line 52

def is_type?(type)
  # JWT session returns type under "capability_type" attribute
  # Web session returns type under "id" attribute but with "P7GJR49W72_" prefixed
  return capability_type == type || id.end_with?(type)
end