Class: Spaceship::ConnectAPI::Certificate

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

Defined Under Namespace

Modules: CertificateType

Instance Attribute Summary collapse

Attributes included from Model

#id

Class Method Summary collapse

Methods included from Model

#attr_mapping, included, #initialize, #update_attributes

Instance Attribute Details

#certificate_contentObject

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_typeObject

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_nameObject

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

#nameObject

Returns the value of attribute name


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

def name
  @name
end

#platformObject

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_numberObject

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

.typeObject


34
35
36
# File 'spaceship/lib/spaceship/connect_api/models/certificate.rb', line 34

def self.type
  return "certificates"
end