Module: StoreModel::Model::ClassMethods
- Defined in:
- lib/store_model/model.rb
Overview
Class methods for StoreModel::Model
Instance Method Summary collapse
Instance Method Details
#from_value(value) ⇒ Object
28 29 30 |
# File 'lib/store_model/model.rb', line 28 def from_value(value) to_type.cast_value(value) end |
#from_values(values) ⇒ Object
32 33 34 |
# File 'lib/store_model/model.rb', line 32 def from_values(values) to_array_type.cast_value(values) end |