Module: JsonApiClient::Helpers::Initializable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Resource
- Defined in:
- lib/json_api_client/helpers/initializable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#initialize(params = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/json_api_client/helpers/initializable.rb', line 17 def initialize(params = {}) initializers.each do |initializer| if initializer.respond_to?(:call) initializer.call(self, params) else self.send(initializer, params) end end end |