Class: Raml::Trait::Instance

Inherits:
AbstractMethod show all
Defined in:
lib/raml/node/trait.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractMethod

#protocols, #query_parameters, #responses

Attributes included from Headers

#headers

Attributes included from Bodies

#bodies

Attributes included from Parent

#children

Attributes included from Documentable

#description, #display_name

Attributes inherited from PropertiesNode

#optional

Attributes inherited from Node

#name, #parent

Method Summary

Methods included from SecuredBy

#_validate_secured_by, #parse_secured_by

Methods included from Validation

#classes_to_s, #validate_array, #validate_hash, #validate_property, #validate_string

Methods included from Merge

#merge, #merge_properties

Methods included from Global

#default_media_type, #resource_type_declarations, #schema_declarations, #security_scheme_declarations, #trait_declarations

Methods inherited from PropertiesNode

#_regexp_property, #initialize, #non_scalar_properties, #scalar_properties

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Raml::PropertiesNode

Instance Attribute Details

#usageString?

Returns how the trait should be used.

Returns:

  • (String, nil)

    how the trait should be used.



8
# File 'lib/raml/node/trait.rb', line 8

scalar_property :usage