class ActiveModel::Attribute

def from_database(name, value_before_type_cast, type, value = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

type ActiveModel__Attribute_from_database_type = ActiveModel::Type::String | ActiveModel::Type::Integer | ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Jsonb | ActiveModel::Type::Boolean | ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter

def from_database: (String name, (nil | Integer | false) value_before_type_cast, ActiveModel__Attribute_from_database_type type, ?Integer? value) -> ActiveModel::Attribute::FromDatabase

This signature was generated using 23 samples from 2 applications.

def from_database(name, value_before_type_cast, type, value = nil)
  FromDatabase.new(name, value_before_type_cast, type, nil, value)
end