Class: Spaceship::ConnectAPI::Capabilities

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/capabilities.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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#nameObject

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

.typeObject



16
17
18
# File 'spaceship/lib/spaceship/connect_api/models/capabilities.rb', line 16

def self.type
  return "capabilities"
end