Sha256: 1451f903718b1ad28123f7e6eaa008022b25685e0f487fb49f64d320f028171e
Contents?: true
Size: 474 Bytes
Versions: 58
Compression:
Stored size: 474 Bytes
Contents
HashDealer.define(:new_error_resource) do attributes({ :protected => [:id], :public => [:name, :age], }) end HashDealer.define(:error_resource) do name("Name") age("age") end HashDealer.define(:error_resource_errors) do errors({ :name => ["must not be empty"], :age => ["must be a valid integer"] }) end HashDealer.define(:error_resource_full_message_errors) do errors([ "Name cannot be empty", "Age must be a valid integer" ]) end
Version data entries
58 entries across 58 versions & 3 rubygems