Class: Google::Compute::Property::InstanceDisksArray
Overview
A Puppet property that holds an integer
Class Method Summary collapse
-
.api_munge(value) ⇒ Object
Used for parsing GCP API responses.
-
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Instance Method Summary collapse
-
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Methods inherited from Array
Methods inherited from Base
Class Method Details
.api_munge(value) ⇒ Object
Used for parsing GCP API responses
214 215 216 217 218 219 |
# File 'lib/google/compute/property/instance_disks.rb', line 214 def self.api_munge(value) return if value.nil? return InstanceDisks.api_munge(value) \ unless value.is_a?(::Array) value.map { |v| InstanceDisks.api_munge(v) } end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
206 207 208 209 210 211 |
# File 'lib/google/compute/property/instance_disks.rb', line 206 def self.unsafe_munge(value) return if value.nil? return InstanceDisks.unsafe_munge(value) \ unless value.is_a?(::Array) value.map { |v| InstanceDisks.unsafe_munge(v) } end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
201 202 203 |
# File 'lib/google/compute/property/instance_disks.rb', line 201 def unsafe_munge(value) self.class.unsafe_munge(value) end |