Class: Google::Storage::Property::BucketNameRef
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Storage::Property::BucketNameRef
- Defined in:
- lib/google/storage/property/bucket_name.rb
Overview
A class to manage fetching name from a bucket
Class Method Summary collapse
-
.api_munge(value) ⇒ Object
Used for fetched JSON values.
- .unsafe_munge(value) ⇒ Object
Instance Method Summary collapse
-
#unsafe_munge(value) ⇒ Object
Used for catalog values.
Class Method Details
.api_munge(value) ⇒ Object
Used for fetched JSON values
112 113 114 115 |
# File 'lib/google/storage/property/bucket_name.rb', line 112 def self.api_munge(value) return if value.nil? Data::BucketNameRefApi.new(value) end |
.unsafe_munge(value) ⇒ Object
106 107 108 109 |
# File 'lib/google/storage/property/bucket_name.rb', line 106 def self.unsafe_munge(value) return if value.nil? Data::BucketNameRefCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for catalog values
102 103 104 |
# File 'lib/google/storage/property/bucket_name.rb', line 102 def unsafe_munge(value) self.class.unsafe_munge(value) end |