module Diesel

require ‘diesel/swagger/response’

Constants

VERSION

Public Class Methods

build_api(specification) click to toggle source
# File lib/diesel.rb, line 11
def self.build_api(specification)
  Diesel::APIBuilder.new(specification).build
end
load_api(path) click to toggle source
# File lib/diesel.rb, line 15
def self.load_api(path)
  build_api(parse_specification(path))
end
parse_specification(path) click to toggle source
# File lib/diesel.rb, line 7
def self.parse_specification(path)
  Diesel::Swagger::Parser.new.parse(File.read(path))
end