Class: Swagger::Blocks::AuthorizationCodeNode

Inherits:
Node
  • Object
show all
Defined in:
lib/swagger/blocks.rb

Overview

Instance Attribute Summary

Attributes inherited from Node

#name

Instance Method Summary collapse

Methods inherited from Node

#as_json, call, #data, #key

Instance Method Details

#token_endpoint(&block) ⇒ Object



259
260
261
# File 'lib/swagger/blocks.rb', line 259

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

#token_request_endpoint(&block) ⇒ Object



255
256
257
# File 'lib/swagger/blocks.rb', line 255

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