Documentation ¶
Index ¶
- Variables
- func DefaultValue(typ *spec.TypeDef, value string) string
- func GenerateClient(specification *spec.Spec, generatePath string) *generator.Sources
- func GenerateModels(specification *spec.Spec, generatePath string) *generator.Sources
- func NewRubyWriter() *generator.Writer
- func PlainRubyType(typ string) string
- func RubyType(typ *spec.TypeDef) string
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 GenerateClient ¶
func GenerateModels ¶
func NewRubyWriter ¶
func PlainRubyType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.