lib/quirky-api/response/response_adapter.rb
def call!
        # Get all adapters, inclusive of the ones listed above, and iterate
        # over them.
        configured_adapters.each do |adapter|
          # Instantiate a new instance of the adapter given the current data.
          a = adapter.new(@data, options)

          # If this particular adapter has a +finalize+ method (see below),
          # keep a record of its existence so we can call it later.
          @_finalize_adapters << adapter if a.respond_to?(:finalize)

          # Call the +call+ method in order to manipulate the response.
          @data = a.call
        end

        # Return the final response.
        @data
      end
# This method executes all configured adapters' call methods in order to
# manipulate the response data.  By calling everything in order, we get
# the final response.
This method executes all configured adapters' call methods in order to
manipulate the response data.  By calling everything in order, we get
the final response.
This method executes all configured adapters ' call methods in order to manipulate the response data . By calling everything in order we get the final response .
def call!
        configured_adapters.each do |adapter|
          a = adapter.new(@data, options)
          @_finalize_adapters << adapter if a.respond_to?(:finalize)
          @data = a.call
        end
        @data
      end
def call! configured_adapters . each do | adapter | a = adapter . new ( @data , options ) @_finalize_adapters << adapter if a . respond_to? ( :finalize ) @data = a . call end @data end
This method executes all configured adapters' call methods in order to
manipulate the response data.
This method executes all configured adapters ' call methods in order to manipulate the response data .
# Get all adapters, inclusive of the ones listed above, and iterate # over them. # Instantiate a new instance of the adapter given the current data. # If this particular adapter has a +finalize+ method (see below), # keep a record of its existence so we can call it later. # Call the +call+ method in order to manipulate the response. # Return the final response.