Class: Swagger::Loaders::JSONLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger/loaders.rb

Class Method Summary collapse

Class Method Details

.load(content) ⇒ Object



24
25
26
# File 'lib/swagger/loaders.rb', line 24

def self.load(content)
  APIDeclaration.build(JSON.parse(content))
end