Class: Google::Storage::Property::BucketVersioning

Inherits:
Base
  • Object
show all
Defined in:
lib/google/storage/property/bucket_versioning.rb

Overview

A class to manage input to Versioning for bucket.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#insync?

Class Method Details

.api_munge(value) ⇒ Object

Used for parsing GCP API responses



111
112
113
114
# File 'lib/google/storage/property/bucket_versioning.rb', line 111

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



105
106
107
108
# File 'lib/google/storage/property/bucket_versioning.rb', line 105

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



100
101
102
# File 'lib/google/storage/property/bucket_versioning.rb', line 100

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