Class: SwaggerParser::SecurityScheme
Instance Attribute Summary
#source
Instance Method Summary
collapse
Methods included from Extendable
#extensions
#initialize
Instance Method Details
#authorization_url ⇒ Object
10
11
12
|
# File 'lib/swagger_parser/security_scheme.rb', line 10
def authorization_url
source["authorizationUrl"]
end
|
#description ⇒ Object
15
16
17
|
# File 'lib/swagger_parser/security_scheme.rb', line 15
def description
source["description"]
end
|
#flow ⇒ Object
20
21
22
|
# File 'lib/swagger_parser/security_scheme.rb', line 20
def flow
source["flow"]
end
|
#in ⇒ Object
25
26
27
|
# File 'lib/swagger_parser/security_scheme.rb', line 25
def in
source["in"]
end
|
#name ⇒ Object
30
31
32
|
# File 'lib/swagger_parser/security_scheme.rb', line 30
def name
source["name"]
end
|
35
36
37
38
39
|
# File 'lib/swagger_parser/security_scheme.rb', line 35
def scopes
if source["scopes"]
SwaggerParser::Scopes.new(source["scopes"])
end
end
|
#token_url ⇒ Object
42
43
44
|
# File 'lib/swagger_parser/security_scheme.rb', line 42
def token_url
source["tokenUrl"]
end
|
#type ⇒ Object
47
48
49
|
# File 'lib/swagger_parser/security_scheme.rb', line 47
def type
source["type"]
end
|