class UserData

Included Modules

Defined in:

models/user_data.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(record : User) #

[View source]

Instance Method Detail

def age : Int32 #

def created_at : Union(Time, Nil) #

def id : Int32 | Nil #

def name : String #

def to_model : User #
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">

[View source]
def updated_at : Union(Time, Nil) #