Method: Conflow::Redis::Model::ClassMethods#fields

Defined in:
lib/conflow/redis/model.rb

#fieldsArray<Symbol>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns fields defined on this class.

Returns:

  • (Array<Symbol>)

    fields defined on this class



95
96
97
# File 'lib/conflow/redis/model.rb', line 95

def fields
  @fields ||= []
end