Class: Raml::Parser::Root
- Inherits:
-
Object
- Object
- Raml::Parser::Root
- Includes:
- Util
- Defined in:
- lib/raml/parser/root.rb
Constant Summary collapse
- BASIC_ATTRIBUTES =
%w[title base_uri version base_uri_parameters media_type secured_by security_schemes types schemas]
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#resource_types ⇒ Object
Returns the value of attribute resource_types.
-
#root ⇒ Object
Returns the value of attribute root.
-
#traits ⇒ Object
Returns the value of attribute traits.
Instance Method Summary collapse
-
#initialize ⇒ Root
constructor
A new instance of Root.
- #parse(attributes) ⇒ Object
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
16 17 18 19 |
# File 'lib/raml/parser/root.rb', line 16 def initialize @traits = {} @resource_types = {} end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
14 15 16 |
# File 'lib/raml/parser/root.rb', line 14 def attributes @attributes end |
#resource_types ⇒ Object
Returns the value of attribute resource_types.
14 15 16 |
# File 'lib/raml/parser/root.rb', line 14 def resource_types @resource_types end |
#root ⇒ Object
Returns the value of attribute root.
14 15 16 |
# File 'lib/raml/parser/root.rb', line 14 def root @root end |
#traits ⇒ Object
Returns the value of attribute traits.
14 15 16 |
# File 'lib/raml/parser/root.rb', line 14 def traits @traits end |