Class: Google::Compute::Property::UrlMapPathMatchArray

Inherits:
Array
  • Object
show all
Defined in:
lib/google/compute/property/urlmap_path_matchers.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



168
169
170
171
172
173
# File 'lib/google/compute/property/urlmap_path_matchers.rb', line 168

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



160
161
162
163
164
165
# File 'lib/google/compute/property/urlmap_path_matchers.rb', line 160

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



155
156
157
# File 'lib/google/compute/property/urlmap_path_matchers.rb', line 155

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