Class: Restapi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/restapi/restapi_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



37
38
39
40
41
42
43
44
45
# File 'lib/restapi/restapi_module.rb', line 37

def initialize
  @markup_language = :rdoc
  @app_name = "Another API"
  @app_info = "Another API description"
  @copyright = nil
  @validate = true
  @api_base_url = ""
  @doc_base_url = "/restapi"
end

Instance Attribute Details

#api_base_urlObject

Returns the value of attribute api_base_url.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def api_base_url
  @api_base_url
end

#app_infoObject

Returns the value of attribute app_info.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def app_info
  @app_info
end

#app_nameObject

Returns the value of attribute app_name.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def app_name
  @app_name
end

Returns the value of attribute copyright.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def copyright
  @copyright
end

#doc_base_urlObject

Returns the value of attribute doc_base_url.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def doc_base_url
  @doc_base_url
end

#markup_languageObject

Returns the value of attribute markup_language.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def markup_language
  @markup_language
end

#validateObject

Returns the value of attribute validate.



31
32
33
# File 'lib/restapi/restapi_module.rb', line 31

def validate
  @validate
end