Sha256: 21c31a3109508730f3b28f293dbff8e3728d06e651f1d2051b406b44405d1d2a

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

require_relative "../included_data"

module FlexCommerceApi
  module JsonApiClientExtension
    module Parsers
      class Parser < ::JsonApiClient::Parsers::Parser
        class << self
          def handle_included(result_set, data)
            result_set.included = ::FlexCommerceApi::JsonApiClientExtension::IncludedData.new(result_set, data.fetch("included", []))
          end
        end
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flex_commerce_api-0.8.3 lib/flex_commerce_api/json_api_client_extension/parsers/parser.rb
flex_commerce_api-0.8.2 lib/flex_commerce_api/json_api_client_extension/parsers/parser.rb
flex_commerce_api-0.8.1 lib/flex_commerce_api/json_api_client_extension/parsers/parser.rb
flex_commerce_api-0.7 lib/flex_commerce_api/json_api_client_extension/parsers/parser.rb
flex_commerce_api-0.6.57 lib/flex_commerce_api/json_api_client_extension/parsers/parser.rb