Class: Spaceship::ConnectAPI::Certificate
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::Certificate
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/certificate.rb
Defined Under Namespace
Modules: CertificateType
Instance Attribute Summary collapse
-
#certificate_content ⇒ Object
Returns the value of attribute certificate_content.
-
#certificate_type ⇒ Object
Returns the value of attribute certificate_type.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#serial_number ⇒ Object
Returns the value of attribute serial_number.
Attributes included from Model
Class Method Summary collapse
Methods included from Model
#attr_mapping, included, #initialize, #update_attributes
Instance Attribute Details
#certificate_content ⇒ Object
Returns the value of attribute certificate_content.
7 8 9 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 7 def certificate_content @certificate_content end |
#certificate_type ⇒ Object
Returns the value of attribute certificate_type.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 12 def certificate_type @certificate_type end |
#display_name ⇒ Object
Returns the value of attribute display_name.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 8 def display_name @display_name end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 9 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 10 def platform @platform end |
#serial_number ⇒ Object
Returns the value of attribute serial_number.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 11 def serial_number @serial_number end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
42 43 44 45 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 42 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resps = Spaceship::ConnectAPI.get_certificates(filter: filter, includes: includes).all_pages return resps.flat_map(&:to_models) end |
.type ⇒ Object
34 35 36 |
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 34 def self.type return "certificates" end |