Class: Spaceship::ConnectAPI::Capabilities
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::Capabilities
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/capabilities.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes included from Model
Class Method Summary collapse
Methods included from Model
#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/capabilities.rb', line 9 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/capabilities.rb', line 8 def name @name end |
Class Method Details
.all(client: nil) ⇒ Object
20 21 22 23 24 |
# File 'spaceship/lib/spaceship/connect_api/models/capabilities.rb', line 20 def self.all(client: nil) client ||= Spaceship::ConnectAPI resp = client.get_available_bundle_id_capabilities(bundle_id_id: id).all_pages return resp.flat_map(&:to_models) end |
.type ⇒ Object
16 17 18 |
# File 'spaceship/lib/spaceship/connect_api/models/capabilities.rb', line 16 def self.type return "capabilities" end |