ruby

package
v2.1.1872 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = generator.Generator{
	"client-ruby",
	"Ruby Client",
	"Generate Ruby client source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgGeneratePath, Required: true},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return GenerateClient(specification, params[generator.ArgGeneratePath])
	},
}
View Source
var Models = generator.Generator{
	"models-ruby",
	"Ruby Models",
	"Generate Ruby models source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgGeneratePath, Required: true},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return GenerateModels(specification, params[generator.ArgGeneratePath])
	},
}
View Source
var RubyConfig = generator.Config{"  ", 2, nil}

Functions

func DefaultValue

func DefaultValue(typ *spec.TypeDef, value string) string

func GenerateClient

func GenerateClient(specification *spec.Spec, generatePath string) *generator.Sources

func GenerateModels

func GenerateModels(specification *spec.Spec, generatePath string) *generator.Sources

func NewRubyWriter

func NewRubyWriter() *generator.Writer

func PlainRubyType

func PlainRubyType(typ string) string

func RubyType

func RubyType(typ *spec.TypeDef) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL