Class: Signable::Model::Column
- Inherits:
-
Struct
- Object
- Struct
- Signable::Model::Column
- Includes:
- Concerns::Prefix
- Defined in:
- lib/signable/model/column.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Methods included from Concerns::Prefix
#match?, #name_with_prefix, #name_without_prefix, #prefix
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/signable/model/column.rb', line 3 def name @name end |
#options ⇒ Object
Returns the value of attribute options
3 4 5 |
# File 'lib/signable/model/column.rb', line 3 def @options end |
Instance Method Details
#required? ⇒ Boolean
6 7 8 |
# File 'lib/signable/model/column.rb', line 6 def required? [:presence] == true end |