Class: Swagger::Blocks::GrantTypesNode
- Inherits:
-
Node
- Object
- Node
- Swagger::Blocks::GrantTypesNode
show all
- Defined in:
- lib/swagger/blocks.rb
Overview
Instance Attribute Summary
Attributes inherited from Node
#name, #version
Instance Method Summary
collapse
Methods inherited from Node
#as_json, call, #data, #is_swagger_1_2?, #is_swagger_2_0?, #key
Instance Method Details
#authorization_code(&block) ⇒ Object
412
413
414
|
# File 'lib/swagger/blocks.rb', line 412
def authorization_code(&block)
self.data[:authorization_code] = Swagger::Blocks::AuthorizationCodeNode.call(version: version, &block)
end
|
#implicit(&block) ⇒ Object
408
409
410
|
# File 'lib/swagger/blocks.rb', line 408
def implicit(&block)
self.data[:implicit] = Swagger::Blocks::ImplicitNode.call(version: version, &block)
end
|