Class: RademadeAdmin::Model::Info::Field
- Inherits:
-
Object
- Object
- RademadeAdmin::Model::Info::Field
- Defined in:
- lib/rademade_admin/model/info/field.rb
Constant Summary collapse
- UNSAVED_FIELDS =
[:id, :_id, :created_at, :deleted_at, :position]
Instance Attribute Summary collapse
-
#getter ⇒ Object
readonly
Returns the value of attribute getter.
-
#localizable ⇒ Object
readonly
Returns the value of attribute localizable.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#relation_name ⇒ Object
readonly
Returns the value of attribute relation_name.
-
#setter ⇒ Object
readonly
Returns the value of attribute setter.
Instance Method Summary collapse
- #date_time? ⇒ Boolean
- #key=(status) ⇒ Object
- #primary? ⇒ Boolean
- #save? ⇒ Boolean
- #string? ⇒ Boolean
Instance Attribute Details
#getter ⇒ Object (readonly)
Returns the value of attribute getter.
9 10 11 |
# File 'lib/rademade_admin/model/info/field.rb', line 9 def getter @getter end |
#localizable ⇒ Object (readonly)
Returns the value of attribute localizable.
9 10 11 |
# File 'lib/rademade_admin/model/info/field.rb', line 9 def localizable @localizable end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/rademade_admin/model/info/field.rb', line 9 def name @name end |
#relation_name ⇒ Object (readonly)
Returns the value of attribute relation_name.
9 10 11 |
# File 'lib/rademade_admin/model/info/field.rb', line 9 def relation_name @relation_name end |
#setter ⇒ Object (readonly)
Returns the value of attribute setter.
9 10 11 |
# File 'lib/rademade_admin/model/info/field.rb', line 9 def setter @setter end |
Instance Method Details
#date_time? ⇒ Boolean
23 24 25 |
# File 'lib/rademade_admin/model/info/field.rb', line 23 def date_time? @is_date_time end |
#key=(status) ⇒ Object
11 12 13 |
# File 'lib/rademade_admin/model/info/field.rb', line 11 def key=(status) @is_key = status end |
#primary? ⇒ Boolean
15 16 17 |
# File 'lib/rademade_admin/model/info/field.rb', line 15 def primary? @primary end |
#save? ⇒ Boolean
19 20 21 |
# File 'lib/rademade_admin/model/info/field.rb', line 19 def save? not UNSAVED_FIELDS.include? name end |
#string? ⇒ Boolean
27 28 29 |
# File 'lib/rademade_admin/model/info/field.rb', line 27 def string? @is_string end |