class UserData
- UserData
- Reference
- Object
Included Modules
- JenniferTwin
- JSON::Serializable
Defined in:
models/user_data.crConstructors
Instance Method Summary
- #age : Int32
- #created_at : Union(Time, Nil)
- #id : Int32 | Nil
- #name : String
-
#to_model : User
Returns a new instance of model class created from current twin state.
- #updated_at : Union(Time, Nil)
Constructor Detail
Instance Method Detail
Description copied from module JenniferTwin
Returns a new instance of model class created from current twin state.
user = User.all.first
user_twin.full_name = "New Name"
user_twin.to_modal # <User:0x000000000030 id: nil, name: "New Name">