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, #keys
Instance Method Details
#authorization_code(inline_keys, &block) ⇒ Object
421
422
423
|
# File 'lib/swagger/blocks.rb', line 421
def authorization_code(inline_keys, &block)
self.data[:authorization_code] = Swagger::Blocks::AuthorizationCodeNode.call(inline_keys: inline_keys, version: version, &block)
end
|
#implicit(inline_keys, &block) ⇒ Object
417
418
419
|
# File 'lib/swagger/blocks.rb', line 417
def implicit(inline_keys, &block)
self.data[:implicit] = Swagger::Blocks::ImplicitNode.call(inline_keys: inline_keys, version: version, &block)
end
|