Class: Sumomo::Stack::APIGenerator::CorsInfo
- Inherits:
-
Object
- Object
- Sumomo::Stack::APIGenerator::CorsInfo
- Extended by:
- HasIrregularlyNamedFunctions
- Defined in:
- lib/sumomo/api.rb
Instance Attribute Summary collapse
-
#allowed_headers ⇒ Object
Returns the value of attribute allowed_headers.
-
#allowed_origins ⇒ Object
Returns the value of attribute allowed_origins.
Instance Method Summary collapse
Methods included from HasIrregularlyNamedFunctions
Instance Attribute Details
#allowed_headers ⇒ Object
Returns the value of attribute allowed_headers.
12 13 14 |
# File 'lib/sumomo/api.rb', line 12 def allowed_headers @allowed_headers end |
#allowed_origins ⇒ Object
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 |