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.



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

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

#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

#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



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

def path
  ''
end

#uriObject



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

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