Class: Google::Storage::Property::BucketNameRef

Inherits:
Puppet::Property
  • Object
show all
Defined in:
lib/google/storage/property/bucket_name.rb

Overview

A class to manage fetching name from a bucket

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for fetched JSON values



113
114
115
116
# File 'lib/google/storage/property/bucket_name.rb', line 113

def self.api_munge(value)
  return if value.nil?
  Data::BucketNameRefApi.new(value)
end

.unsafe_munge(value, resource = nil) ⇒ Object



107
108
109
110
# File 'lib/google/storage/property/bucket_name.rb', line 107

def self.unsafe_munge(value, resource = nil)
  return if value.nil?
  Data::BucketNameRefCatalog.new(value, resource)
end

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for catalog values



103
104
105
# File 'lib/google/storage/property/bucket_name.rb', line 103

def unsafe_munge(value)
  self.class.unsafe_munge(value, @resource)
end