Class: Spaceship::ConnectAPI::BundleIdCapability
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::BundleIdCapability
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#capability_type ⇒ Object
Returns the value of attribute capability_type.
-
#settings ⇒ Object
Returns the value of attribute settings.
Attributes included from Model
Class Method Summary collapse
-
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API.
- .find(email: nil, includes: nil) ⇒ Object
- .type ⇒ Object
Instance Method Summary collapse
-
#is_type?(type) ⇒ Boolean
Helpers.
Methods included from Model
#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes
Instance Attribute Details
#capability_type ⇒ Object
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 |
#settings ⇒ Object
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 |
.type ⇒ Object
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
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 |