Class: SwaggerParser::SecurityScheme

Inherits:
SourceBasedObject show all
Includes:
Extendable
Defined in:
lib/swagger_parser/security_scheme.rb

Instance Attribute Summary

Attributes inherited from SourceBasedObject

#source

Instance Method Summary collapse

Methods included from Extendable

#extensions

Methods inherited from SourceBasedObject

#initialize

Constructor Details

This class inherits a constructor from SwaggerParser::SourceBasedObject

Instance Method Details

#authorization_urlObject

Returns:

  • (Object)


10
11
12
# File 'lib/swagger_parser/security_scheme.rb', line 10

def authorization_url
  source["authorizationUrl"]
end

#descriptionObject

Returns:

  • (Object)


15
16
17
# File 'lib/swagger_parser/security_scheme.rb', line 15

def description
  source["description"]
end

#flowObject

Returns:

  • (Object)


20
21
22
# File 'lib/swagger_parser/security_scheme.rb', line 20

def flow
  source["flow"]
end

#inObject

Returns:

  • (Object)


25
26
27
# File 'lib/swagger_parser/security_scheme.rb', line 25

def in
  source["in"]
end

#nameObject

Returns:

  • (Object)


30
31
32
# File 'lib/swagger_parser/security_scheme.rb', line 30

def name
  source["name"]
end

#scopesSwaggerParser::Scopes?

Returns:



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_urlObject

Returns:

  • (Object)


42
43
44
# File 'lib/swagger_parser/security_scheme.rb', line 42

def token_url
  source["tokenUrl"]
end

#typeObject

Returns:

  • (Object)


47
48
49
# File 'lib/swagger_parser/security_scheme.rb', line 47

def type
  source["type"]
end