Module: Jsonapi::Swagger

Defined in:
lib/jsonapi/swagger.rb,
lib/jsonapi/swagger/json.rb,
lib/jsonapi/swagger/railtie.rb,
lib/jsonapi/swagger/version.rb

Defined Under Namespace

Classes: Error, Json, Railtie

Constant Summary collapse

VERSION =
'0.6.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_pathObject

Returns the value of attribute base_path.



12
13
14
# File 'lib/jsonapi/swagger.rb', line 12

def base_path
  @base_path
end

.file_pathObject

Returns the value of attribute file_path.



12
13
14
# File 'lib/jsonapi/swagger.rb', line 12

def file_path
  @file_path
end

.infoObject

Returns the value of attribute info.



12
13
14
# File 'lib/jsonapi/swagger.rb', line 12

def info
  @info
end

.use_rswagObject

Returns the value of attribute use_rswag.



12
13
14
# File 'lib/jsonapi/swagger.rb', line 12

def use_rswag
  @use_rswag
end

.versionObject

Returns the value of attribute version.



12
13
14
# File 'lib/jsonapi/swagger.rb', line 12

def version
  @version
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



14
15
16
# File 'lib/jsonapi/swagger.rb', line 14

def config
  yield self
end