Class: RamlParser::Model::Root
- Inherits:
-
Object
- Object
- RamlParser::Model::Root
- Defined in:
- lib/raml_parser/model.rb
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#base_uri_parameters ⇒ Object
Returns the value of attribute base_uri_parameters.
-
#documentation ⇒ Object
Returns the value of attribute documentation.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#protocols ⇒ Object
Returns the value of attribute protocols.
-
#resource_types ⇒ Object
Returns the value of attribute resource_types.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#schemas ⇒ Object
Returns the value of attribute schemas.
-
#secured_by ⇒ Object
Returns the value of attribute secured_by.
-
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
-
#title ⇒ Object
Returns the value of attribute title.
-
#traits ⇒ Object
Returns the value of attribute traits.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(title = nil, base_uri = nil, version = nil, media_type = nil, schemas = {}, security_schemes = {}, base_uri_parameters = {}, resource_types = {}, traits = {}, protocols = [], secured_by = [], documentation = [], resources = []) ⇒ Root
constructor
A new instance of Root.
Constructor Details
#initialize(title = nil, base_uri = nil, version = nil, media_type = nil, schemas = {}, security_schemes = {}, base_uri_parameters = {}, resource_types = {}, traits = {}, protocols = [], secured_by = [], documentation = [], resources = []) ⇒ Root
Returns a new instance of Root.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/raml_parser/model.rb', line 6 def initialize(title = nil, base_uri = nil, version = nil, media_type = nil, schemas = {}, security_schemes = {}, base_uri_parameters = {}, resource_types = {}, traits = {}, protocols = [], secured_by = [], documentation = [], resources = []) @title = title @base_uri = base_uri @version = version @media_type = media_type @schemas = schemas @security_schemes = security_schemes @base_uri_parameters = base_uri_parameters @resource_types = resource_types @traits = traits @protocols = protocols @secured_by = secured_by @documentation = documentation @resources = resources end |
Instance Attribute Details
#base_uri ⇒ Object
Returns the value of attribute base_uri.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def base_uri @base_uri end |
#base_uri_parameters ⇒ Object
Returns the value of attribute base_uri_parameters.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def base_uri_parameters @base_uri_parameters end |
#documentation ⇒ Object
Returns the value of attribute documentation.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def documentation @documentation end |
#media_type ⇒ Object
Returns the value of attribute media_type.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def media_type @media_type end |
#protocols ⇒ Object
Returns the value of attribute protocols.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def protocols @protocols end |
#resource_types ⇒ Object
Returns the value of attribute resource_types.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def resource_types @resource_types end |
#resources ⇒ Object
Returns the value of attribute resources.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def resources @resources end |
#schemas ⇒ Object
Returns the value of attribute schemas.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def schemas @schemas end |
#secured_by ⇒ Object
Returns the value of attribute secured_by.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def secured_by @secured_by end |
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def security_schemes @security_schemes end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def title @title end |
#traits ⇒ Object
Returns the value of attribute traits.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def traits @traits end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/raml_parser/model.rb', line 4 def version @version end |