Class: Engine2::DecodeListMeta

Inherits:
DecodeMeta show all
Defined in:
lib/engine2/meta/decode_meta.rb

Instance Attribute Summary

Attributes inherited from Meta

#action, #assets, #invokable, #static

Instance Method Summary collapse

Methods inherited from DecodeMeta

#decode, #post_process, #post_run, #pre_run, #separator, #show_max_selected

Methods included from MetaAPISupport

#config, #decorate, #field_filter, #hide_fields, #info, #info!, #loc!, #reload_routes!, #render, #show_fields

Methods included from MetaModelSupport

#action_defined, #get_type_info, #hide_pk, #pre_run, #show_pk, #unsupported_association

Methods included from MetaQuerySupport

#get_query, #post_run, #query, #select

Methods inherited from Meta

#action_defined, #check_static_meta, #dynamic?, #freeze_meta, #get, http_method, #http_method, inherited, #initialize, #invoke!, #lookup, #merge, #meta_type, meta_type, #post_process, #post_run, #pre_run, #request, #request_meta_proc_params, #response, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Meta

Instance Method Details

#invoke(handler) ⇒ Object



56
57
58
# File 'lib/engine2/meta/decode_meta.rb', line 56

def invoke handler
    {entries: get_query.limit(200).all}
end