Class: Google::Storage::Property::BucketCondition

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

Overview

A class to manage input to Condition 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



139
140
141
142
# File 'lib/google/storage/property/bucket_condition.rb', line 139

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

.unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



133
134
135
136
# File 'lib/google/storage/property/bucket_condition.rb', line 133

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

Instance Method Details

#unsafe_munge(value) ⇒ Object

Used for parsing Puppet catalog



128
129
130
# File 'lib/google/storage/property/bucket_condition.rb', line 128

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