Sha256: 0c52be73141acf235ec0b16a25ff78164a46be9ea3b1fc60bf47413ee5f91ca7
Contents?: true
Size: 951 Bytes
Versions: 6
Compression:
Stored size: 951 Bytes
Contents
module {{namespace_module}} module Accounts module Create class Normalizer include Shogun::Normalizer include Accounts ATTRIBUTES = %w|signature username name email password| def initialize(raw:) if raw[namespace] @signature = raw[namespace]["signature"] @name = raw[namespace]["name"] @email = raw[namespace]["email"] @username = raw[namespace]["username"] @password = raw[namespace]["password"] end end def signature @signature.strip if @signature.is_a?(String) end def name @name.strip if @name.is_a?(String) end def email @email.strip if @email.is_a?(String) end def username @username.strip if @username.is_a?(String) end def password @password end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems