Class: Azure::Storage::Common::Service::Cors

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/storage/common/service/cors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Cors

Returns a new instance of Cors.

Yields:

  • (_self)

Yield Parameters:



30
31
32
33
# File 'lib/azure/storage/common/service/cors.rb', line 30

def initialize
  @cors_rules = []
  yield self if block_given?
end

Instance Attribute Details

#cors_rulesObject

Returns the value of attribute cors_rules.



35
36
37
# File 'lib/azure/storage/common/service/cors.rb', line 35

def cors_rules
  @cors_rules
end