Class: Sumomo::Stack::APIGenerator::CorsInfo

Inherits:
Object
  • Object
show all
Extended by:
HasIrregularlyNamedFunctions
Defined in:
lib/sumomo/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasIrregularlyNamedFunctions

defi

Instance Attribute Details

#allowed_headersObject

Returns the value of attribute allowed_headers.



12
13
14
# File 'lib/sumomo/api.rb', line 12

def allowed_headers
  @allowed_headers
end

#allowed_originsObject

Returns the value of attribute allowed_origins.



12
13
14
# File 'lib/sumomo/api.rb', line 12

def allowed_origins
  @allowed_origins
end

Instance Method Details

#apply(&block) ⇒ Object



14
15
16
17
18
# File 'lib/sumomo/api.rb', line 14

def apply(&block)
  @allowed_origins = []
  @allowed_headers = []
  instance_eval(&block) if block
end