Module: StoreModel::TypeBuilders
- Defined in:
- lib/store_model/type_builders.rb
Overview
Contains methods for converting StoreModel::Model to ActiveModel::Type::Value.
Instance Method Summary collapse
-
#to_array_type ⇒ Types::ArrayType
Converts StoreModel::Model to Types::ArrayType.
-
#to_type ⇒ Types::JsonType
Converts StoreModel::Model to Types::JsonType.
Instance Method Details
#to_array_type ⇒ Types::ArrayType
Converts StoreModel::Model to Types::ArrayType
14 15 16 |
# File 'lib/store_model/type_builders.rb', line 14 def to_array_type Types::ArrayType.new(self) end |
#to_type ⇒ Types::JsonType
Converts StoreModel::Model to Types::JsonType
8 9 10 |
# File 'lib/store_model/type_builders.rb', line 8 def to_type Types::JsonType.new(self) end |