Class: Google::Compute::Property::InstancTemplatDisksArray

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



213
214
215
216
217
218
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 213

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



205
206
207
208
209
210
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 205

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



200
201
202
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 200

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