Class: Google::Compute::Property::SslCertSelfLinkRefArray

Inherits:
Array
  • Object
show all
Defined in:
lib/google/compute/property/sslcertificate_selflink.rb

Overview

A Puppet property that holds an integer

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Array

#match_all?, match_all_array

Methods inherited from Base

#insync?

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



136
137
138
139
140
141
# File 'lib/google/compute/property/sslcertificate_selflink.rb', line 136

def self.api_munge(value)
  return if value.nil?
  return SslCertSelfLinkRef.api_munge(value) \
    unless value.is_a?(::Array)
  value.map { |v| SslCertSelfLinkRef.api_munge(v) }
end

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



128
129
130
131
132
133
# File 'lib/google/compute/property/sslcertificate_selflink.rb', line 128

def self.unsafe_munge(value)
  return if value.nil?
  return SslCertSelfLinkRef.unsafe_munge(value) \
    unless value.is_a?(::Array)
  value.map { |v| SslCertSelfLinkRef.unsafe_munge(v) }
end

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



123
124
125
# File 'lib/google/compute/property/sslcertificate_selflink.rb', line 123

def unsafe_munge(value)
  self.class.unsafe_munge(value)
end