Class: Google::Storage::Property::BucketOwner

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

Overview

A class to manage input to owner for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



120
121
122
123
# File 'lib/google/storage/property/bucket_owner.rb', line 120

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



114
115
116
117
# File 'lib/google/storage/property/bucket_owner.rb', line 114

def self.unsafe_munge(value)
  return if value.nil?
  Data::BucketOwnerCatalog.new(value)
end

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



109
110
111
# File 'lib/google/storage/property/bucket_owner.rb', line 109

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