Class: Google::Storage::Data::BucketCorsCatalog

Inherits:
BucketCors
  • Object
show all
Defined in:
lib/google/storage/property/bucket_cors.rb

Overview

Manages a BucketCors nested object Data is coming from the Puppet manifest

Instance Attribute Summary

Attributes inherited from BucketCors

#max_age_seconds, #method, #origin, #response_header

Instance Method Summary collapse

Methods inherited from BucketCors

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BucketCorsCatalog

Returns a new instance of BucketCorsCatalog.



111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/google/storage/property/bucket_cors.rb', line 111

def initialize(args)
  @max_age_seconds = Google::Storage::Property::Integer.unsafe_munge(
    args['max_age_seconds']
  )
  @method =
    Google::Storage::Property::StringArray.unsafe_munge(args['method'])
  @origin =
    Google::Storage::Property::StringArray.unsafe_munge(args['origin'])
  @response_header =
    Google::Storage::Property::StringArray.unsafe_munge(
      args['response_header']
    )
end