Class: Raml::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/raml/root.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRoot

Returns a new instance of Root.



7
8
9
10
# File 'lib/raml/root.rb', line 7

def initialize
  @resources = []
  @documentation = []
end

Instance Attribute Details

#base_uriObject

Returns the value of attribute base_uri.



3
4
5
# File 'lib/raml/root.rb', line 3

def base_uri
  @base_uri
end

#base_uri_parametersObject

Returns the value of attribute base_uri_parameters.



3
4
5
# File 'lib/raml/root.rb', line 3

def base_uri_parameters
  @base_uri_parameters
end

#documentationObject

Returns the value of attribute documentation.



3
4
5
# File 'lib/raml/root.rb', line 3

def documentation
  @documentation
end

#media_typeObject

Returns the value of attribute media_type.



3
4
5
# File 'lib/raml/root.rb', line 3

def media_type
  @media_type
end

#resourcesObject

Returns the value of attribute resources.



3
4
5
# File 'lib/raml/root.rb', line 3

def resources
  @resources
end

#schemasObject

Returns the value of attribute schemas.



3
4
5
# File 'lib/raml/root.rb', line 3

def schemas
  @schemas
end

#secured_byObject

Returns the value of attribute secured_by.



3
4
5
# File 'lib/raml/root.rb', line 3

def secured_by
  @secured_by
end

#security_schemesObject

Returns the value of attribute security_schemes.



3
4
5
# File 'lib/raml/root.rb', line 3

def security_schemes
  @security_schemes
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/raml/root.rb', line 3

def title
  @title
end

#typesObject

Returns the value of attribute types.



3
4
5
# File 'lib/raml/root.rb', line 3

def types
  @types
end

#versionObject

Returns the value of attribute version.



3
4
5
# File 'lib/raml/root.rb', line 3

def version
  @version
end

Instance Method Details

#pathObject



16
17
18
# File 'lib/raml/root.rb', line 16

def path
  ''
end

#uriObject



12
13
14
# File 'lib/raml/root.rb', line 12

def uri
  base_uri.sub('{version}', version.to_s)
end