module StoreModel::TypeBuilders

Contains methods for converting StoreModel::Model to ActiveModel::Type::Value.

Public Instance Methods

to_array_type() click to toggle source

Converts StoreModel::Model to Types::Many @return [Types::Many]

# File lib/store_model/type_builders.rb, line 14
def to_array_type
  Types::Many.new(self)
end
to_type() click to toggle source

Converts StoreModel::Model to Types::One @return [Types::One]

# File lib/store_model/type_builders.rb, line 8
def to_type
  Types::One.new(self)
end