Class: DataModel::Builtin::Object::Arguments

Inherits:
Struct
  • Object
show all
Defined in:
lib/data_model/builtin/object.rb

Overview

Object arguments

Instance Attribute Summary collapse

Attributes inherited from Struct

#errors

Method Summary

Methods inherited from Struct

#initialize, prop, #to_hash

Constructor Details

This class inherits a constructor from DataModel::Struct

Instance Attribute Details

#optionalBoolean

Returns whether or not this type is optional.

Returns:

  • (Boolean)

    whether or not this type is optional



10
# File 'lib/data_model/builtin/object.rb', line 10

prop :optional, :boolean, default: false