Class: Google::Storage::Property::BucketLifecycle
- Defined in:
- lib/google/storage/property/bucket_lifecycle.rb
Overview
A class to manage input to Lifecycle for bucket.
Class Method Summary collapse
-
.api_munge(value) ⇒ Object
Used for parsing GCP API responses.
-
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Instance Method Summary collapse
-
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog.
Methods inherited from Base
Class Method Details
.api_munge(value) ⇒ Object
Used for parsing GCP API responses
113 114 115 116 |
# File 'lib/google/storage/property/bucket_lifecycle.rb', line 113 def self.api_munge(value) return if value.nil? Data::BucketLifecycleApi.new(value) end |
.unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
107 108 109 110 |
# File 'lib/google/storage/property/bucket_lifecycle.rb', line 107 def self.unsafe_munge(value) return if value.nil? Data::BucketLifecycleCatalog.new(value) end |
Instance Method Details
#unsafe_munge(value) ⇒ Object
Used for parsing Puppet catalog
102 103 104 |
# File 'lib/google/storage/property/bucket_lifecycle.rb', line 102 def unsafe_munge(value) self.class.unsafe_munge(value) end |