Class: RSchema::Schemas::FixedHash::Attribute
- Inherits:
-
Struct
- Object
- Struct
- RSchema::Schemas::FixedHash::Attribute
- Defined in:
- lib/rschema/schemas/fixed_hash.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#optional ⇒ Object
Returns the value of attribute optional.
-
#value_schema ⇒ Object
Returns the value of attribute value_schema.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
103 104 105 |
# File 'lib/rschema/schemas/fixed_hash.rb', line 103 def key @key end |
#optional ⇒ Object
Returns the value of attribute optional
103 104 105 |
# File 'lib/rschema/schemas/fixed_hash.rb', line 103 def optional @optional end |
#value_schema ⇒ Object
Returns the value of attribute value_schema
103 104 105 |
# File 'lib/rschema/schemas/fixed_hash.rb', line 103 def value_schema @value_schema end |
Instance Method Details
#with_wrapped_value_schema(wrapper) ⇒ Object
104 105 106 |
# File 'lib/rschema/schemas/fixed_hash.rb', line 104 def with_wrapped_value_schema(wrapper) self.class.new(key, wrapper.wrap(value_schema), optional) end |