Class: HakumiComponents::Rails::ModelReflection::ColumnInfo

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/hakumi_components/rails/model_reflection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#limitObject (readonly)

Returns the value of attribute limit.



22
23
24
# File 'lib/hakumi_components/rails/model_reflection.rb', line 22

def limit
  @limit
end

#typeObject (readonly)

Returns the value of attribute type.



19
20
21
# File 'lib/hakumi_components/rails/model_reflection.rb', line 19

def type
  @type
end