Class: Google::Storage::Data::BucketCorsApi
- Inherits:
-
BucketCors
- Object
- BucketCors
- Google::Storage::Data::BucketCorsApi
- Defined in:
- lib/google/storage/property/bucket_cors.rb
Overview
Manages a BucketCors nested object Data is coming from the GCP API
Instance Attribute Summary
Attributes inherited from BucketCors
#max_age_seconds, #method, #origin, #response_header
Instance Method Summary collapse
-
#initialize(args) ⇒ BucketCorsApi
constructor
A new instance of BucketCorsApi.
Methods inherited from BucketCors
Constructor Details
#initialize(args) ⇒ BucketCorsApi
Returns a new instance of BucketCorsApi.
95 96 97 98 99 100 101 |
# File 'lib/google/storage/property/bucket_cors.rb', line 95 def initialize(args) @max_age_seconds = Google::Storage::Property::Integer.api_munge(args['maxAgeSeconds']) @method = Google::Storage::Property::StringArray.api_munge(args['method']) @origin = Google::Storage::Property::StringArray.api_munge(args['origin']) @response_header = Google::Storage::Property::StringArray.api_munge(args['responseHeader']) end |