Class: Eazypi::SecurityRequirement
- Inherits:
-
Object
- Object
- Eazypi::SecurityRequirement
- Defined in:
- lib/eazypi/security_requirement.rb
Overview
Security Requirement OpenAPI object
Instance Method Summary collapse
-
#initialize(name, scopes = []) ⇒ SecurityRequirement
constructor
A new instance of SecurityRequirement.
- #to_openapi_spec ⇒ Object
Constructor Details
#initialize(name, scopes = []) ⇒ SecurityRequirement
Returns a new instance of SecurityRequirement.
6 7 8 9 |
# File 'lib/eazypi/security_requirement.rb', line 6 def initialize(name, scopes = []) @name = name @scopes = scopes end |
Instance Method Details
#to_openapi_spec ⇒ Object
11 12 13 14 15 |
# File 'lib/eazypi/security_requirement.rb', line 11 def to_openapi_spec { @name => @scopes } end |