Class: FmStore::Field
- Inherits:
-
Object
- Object
- FmStore::Field
- Defined in:
- lib/fm_store/field.rb
Instance Attribute Summary collapse
-
#fm_name ⇒ Object
readonly
Returns the value of attribute fm_name.
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#searchable ⇒ Object
readonly
Returns the value of attribute searchable.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, options = {}) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name, type, options = {}) ⇒ Field
Returns a new instance of Field.
6 7 8 9 10 11 12 |
# File 'lib/fm_store/field.rb', line 6 def initialize(name, type, = {}) @name = name @fm_name = [:fm_name] || name @type = type @searchable = [:searchable] || false @identity = [:identity] || false end |
Instance Attribute Details
#fm_name ⇒ Object (readonly)
Returns the value of attribute fm_name.
4 5 6 |
# File 'lib/fm_store/field.rb', line 4 def fm_name @fm_name end |
#identity ⇒ Object (readonly)
Returns the value of attribute identity.
4 5 6 |
# File 'lib/fm_store/field.rb', line 4 def identity @identity end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/fm_store/field.rb', line 4 def name @name end |
#searchable ⇒ Object (readonly)
Returns the value of attribute searchable.
4 5 6 |
# File 'lib/fm_store/field.rb', line 4 def searchable @searchable end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/fm_store/field.rb', line 4 def type @type end |