Sha256: 77e14ee127d229a5d851bd2897e39167cd019cf0c55485919e4851a7f08485e3
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true require_relative 'base' module Dayman module Parsers class MemberParser < Base def parse return if parsed_response.blank? item = parsed_response[:data] response_item_to_object(item).tap do |resource| item[:relationships]&.each do |relationship_name, relationship_content| build_relationship(resource, relationship_name, relationship_content) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dayman-0.1.2 | lib/dayman/parsers/member_parser.rb |
dayman-0.1.1 | lib/dayman/parsers/member_parser.rb |