Class: HakumiComponents::Rails::ModelReflection::ColumnInfo
- Inherits:
-
Object
- Object
- HakumiComponents::Rails::ModelReflection::ColumnInfo
- Extended by:
- T::Sig
- Defined in:
- lib/hakumi_components/rails/model_reflection.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, limit:) ⇒ ColumnInfo
constructor
A new instance of ColumnInfo.
Constructor Details
#initialize(type:, limit:) ⇒ ColumnInfo
Returns a new instance of ColumnInfo.
13 14 15 16 |
# File 'lib/hakumi_components/rails/model_reflection.rb', line 13 def initialize(type:, limit:) @type = T.let(type, T.nilable(Symbol)) @limit = T.let(limit, T.nilable(Integer)) end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
22 23 24 |
# File 'lib/hakumi_components/rails/model_reflection.rb', line 22 def limit @limit end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
19 20 21 |
# File 'lib/hakumi_components/rails/model_reflection.rb', line 19 def type @type end |