Class: StandardId::ConfigSchema::Field
- Inherits:
-
Struct
- Object
- Struct
- StandardId::ConfigSchema::Field
- Defined in:
- lib/standard_id/config_schema.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
12 13 14 |
# File 'lib/standard_id/config_schema.rb', line 12 def default @default end |
#name ⇒ Object
Returns the value of attribute name
12 13 14 |
# File 'lib/standard_id/config_schema.rb', line 12 def name @name end |
#type ⇒ Object
Returns the value of attribute type
12 13 14 |
# File 'lib/standard_id/config_schema.rb', line 12 def type @type end |
Instance Method Details
#default_value ⇒ Object
13 14 15 16 17 |
# File 'lib/standard_id/config_schema.rb', line 13 def default_value return default.call if default.respond_to?(:call) return default.dup if default.is_a?(Array) || default.is_a?(Hash) default end |