Class: ActiveRecord::Type::Enum
- Inherits:
-
Type::Value
- Object
- Type::Value
- ActiveRecord::Type::Enum
- Defined in:
- lib/native_enum/activerecord_enum_post42.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Enum
constructor
A new instance of Enum.
- #type ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Enum
Returns a new instance of Enum.
42 43 44 45 |
# File 'lib/native_enum/activerecord_enum_post42.rb', line 42 def initialize( = {}) .assert_valid_keys(:limit) @limit = [:limit] end |
Instance Method Details
#type ⇒ Object
38 39 40 |
# File 'lib/native_enum/activerecord_enum_post42.rb', line 38 def type :enum end |