Class: Google::Storage::Property::BucketAclArray

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



180
181
182
183
184
185
# File 'lib/google/storage/property/bucket_acl.rb', line 180

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



172
173
174
175
176
177
# File 'lib/google/storage/property/bucket_acl.rb', line 172

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



167
168
169
# File 'lib/google/storage/property/bucket_acl.rb', line 167

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