Class: RailsFields::DeclaredField
- Inherits:
-
Struct
- Object
- Struct
- RailsFields::DeclaredField
- Defined in:
- lib/rails_fields/class_methods.rb
Overview
Lightweight, typed container for field declarations Include :options to maintain compatibility with code that reads it
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#null ⇒ Object
Returns the value of attribute null.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
4 5 6 |
# File 'lib/rails_fields/class_methods.rb', line 4 def index @index end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/rails_fields/class_methods.rb', line 4 def name @name end |
#null ⇒ Object
Returns the value of attribute null
4 5 6 |
# File 'lib/rails_fields/class_methods.rb', line 4 def null @null end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/rails_fields/class_methods.rb', line 4 def @options end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/rails_fields/class_methods.rb', line 4 def type @type end |