Slide 28
Slide 28 text
Input object
module
module
module
class
include
:: :: new
:: :: new :: :: : :
: in
:
def **
super **
end
def
: : :
end
end
end
end
end
attribute ,
attribute , .
attribute , . ( , array ), default { [] }
validates , inclusion { : }
validates , presence
( args)
( args.compact_blank)
( )
{ name , status , hoges }
Inputs
Controllers
HogeController
CreateInput
Types SymbolType
Types InputType Inputs ->
Input
:name :string
:status
:fugas FugaInput true
:status
:fugas true
%[ ]
todo doing done
initialize
deconstruct_keys _