Class: Raml::SecurityScheme

Inherits:
Template show all
Defined in:
lib/raml/node/security_scheme.rb

Defined Under Namespace

Classes: Instance

Instance Attribute Summary

Attributes inherited from ValueNode

#value

Attributes inherited from Node

#name, #parent

Instance Method Summary collapse

Methods inherited from Template

#interpolate

Methods inherited from ValueNode

#initialize

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Raml::ValueNode

Instance Method Details

#instantiate(params) ⇒ Raml::SecurityScheme::Instance

Instantiate a new resource type with the given parameters.

Parameters:

  • params (Hash)

    the parameters to interpolate in the resource type.

Returns:



41
42
43
44
45
# File 'lib/raml/node/security_scheme.rb', line 41

def instantiate(params)
  instance = Instance.new( *interpolate(params), @parent )
  # instance.apply_resource_type # TODO: do we need apply_security_scheme?
  instance
end