Class: RamlParser::Model::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/raml_parser/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_uriObject

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_parametersObject

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

#documentationObject

Returns the value of attribute documentation.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def documentation
  @documentation
end

#media_typeObject

Returns the value of attribute media_type.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def media_type
  @media_type
end

#protocolsObject

Returns the value of attribute protocols.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def protocols
  @protocols
end

#resource_typesObject

Returns the value of attribute resource_types.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def resource_types
  @resource_types
end

#resourcesObject

Returns the value of attribute resources.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def resources
  @resources
end

#schemasObject

Returns the value of attribute schemas.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def schemas
  @schemas
end

#secured_byObject

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_schemesObject

Returns the value of attribute security_schemes.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def security_schemes
  @security_schemes
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def title
  @title
end

#traitsObject

Returns the value of attribute traits.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def traits
  @traits
end

#versionObject

Returns the value of attribute version.



4
5
6
# File 'lib/raml_parser/model.rb', line 4

def version
  @version
end