class UserArguments(arguments.Container): COMPATIBLE_TYPE = User name = arguments.String(lambda self: self.input.name) age = arguments.Value(lambda self: self.input.age) location = arguments.String(lambda self: self.input.location) married = arguments.Boolean(lambda self: self.input.married)
class UserArgument(arguments.Container): """ UserArguments Container. This is a class that translate the business entity to a knew structure for gutter. """ # Generate compatibility with the business model. COMPATIBLE_TYPE = User name = arguments.String('name') age = arguments.Integer('age') is_admin = arguments.Boolean('is_admin')
class User(arguments.Container): name = arguments.String(lambda self: 'Jeff') age = arguments.Value(lambda self: 29) registered_on = arguments.Boolean(lambda self: True)