Class: Swagger::Blocks::AuthorizationCodeNode

Inherits:
Node
  • Object
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

#token_endpoint(&block) ⇒ Object



423
424
425
# File 'lib/swagger/blocks.rb', line 423

def token_endpoint(&block)
  self.data[:tokenEndpoint] = Swagger::Blocks::TokenEndpointNode.call(version: version, &block)
end

#token_request_endpoint(&block) ⇒ Object



419
420
421
# File 'lib/swagger/blocks.rb', line 419

def token_request_endpoint(&block)
  self.data[:tokenRequestEndpoint] = Swagger::Blocks::TokenRequestEndpointNode.call(version: version, &block)
end