Module: Atatus::Normalizers Private
- Defined in:
- lib/atatus/normalizers.rb,
lib/atatus/normalizers/rails/action_view.rb,
lib/atatus/normalizers/grape/endpoint_run.rb,
lib/atatus/normalizers/rails/action_mailer.rb,
lib/atatus/normalizers/rails/active_record.rb,
lib/atatus/normalizers/rails/action_controller.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: ActionController, ActionMailer, ActionView, ActiveRecord, Grape Classes: Collection, Normalizer
Class Method Summary collapse
- .build(config) ⇒ Object private
- .register(name, klass) ⇒ Object private
Class Method Details
.build(config) ⇒ Object
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.
41 42 43 44 45 46 47 |
# File 'lib/atatus/normalizers.rb', line 41 def self.build(config) normalizers = @registered.transform_values do |klass| klass.new(config) end Collection.new(normalizers) end |
.register(name, klass) ⇒ Object
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.
36 37 38 39 |
# File 'lib/atatus/normalizers.rb', line 36 def self.register(name, klass) @registered ||= {} @registered[name] = klass end |