Sha256: 4d9fa56ef356c3072ec9261460b013aa7d16bd7d64c10556c428f652ecee3242
Contents?: true
Size: 403 Bytes
Versions: 20
Compression:
Stored size: 403 Bytes
Contents
require_relative "./util" require_relative "./server" module Swagger class Schema module HandleServers def servers Util.try_hash(@schema, :servers) end def server(index) Server.new(servers[index]) end def server_by_description(description) Server.new(servers.find { |server| server.description == description }) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems