Class: DepartmentFeatureType

Inherits:
Object
  • Object
show all
Includes:
EnumField::DefineEnum
Defined in:
app/models/enums/department_feature_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, order_related) ⇒ DepartmentFeatureType

Returns a new instance of DepartmentFeatureType.



8
9
10
11
# File 'app/models/enums/department_feature_type.rb', line 8

def initialize(code, order_related)
  @code = code.to_sym
  @order_related = order_related
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'app/models/enums/department_feature_type.rb', line 6

def code
  @code
end