class Azure::Storage::Common::Service::CorsRule

Attributes

allowed_headers[RW]
allowed_methods[RW]
allowed_origins[RW]
exposed_headers[RW]
max_age_in_seconds[RW]

Public Class Methods

new() { |self| ... } click to toggle source
# File lib/azure/storage/common/service/cors_rule.rb, line 30
def initialize
  # All CORS rule elements are required if the CorsRule element is specified.
  # The request will fail with error code 400 (Bad Request) if any element is missing.
  @allowed_origins = []
  @allowed_methods = []
  @exposed_headers = []
  @allowed_headers = []
  @max_age_in_seconds = 0
  yield self if block_given?
end