Module: SimpleAMS::DSL
- Included in:
- Options::EmptySerializer
- Defined in:
- lib/simple_ams/dsl.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(host_class) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/simple_ams/dsl.rb', line 4 def self.included(host_class) host_class.extend ClassMethods _klass = Class.new(Object).extend(ClassMethods) _klass.instance_eval do def { adapter: adapter, primary_id: primary_id, type: type, fields: fields, relations: relations, includes: includes, links: links, metas: , forms: forms, generics: generics } end end host_class.const_set('Collection_', _klass) end |