def build_link(name, link_or_links, curies, entry_point)
      return unless link_or_links

      if link_or_links.respond_to?(:to_ary)
        link_or_links.map do |link|
          build_link(name, link, curies, entry_point)
        end
      else
        Link.new(name, link_or_links, entry_point)
      end
    end
def build_link(name, link_or_links, curies, entry_point)
      return unless link_or_links

      if link_or_links.respond_to?(:to_ary)
        link_or_links.map do |link|
          build_link(name, link, curies, entry_point)
        end
      else
        Link.new(name, link_or_links, entry_point)
      end
    end
Internal: Creates links from the response hash.

 name          - A String to identify the link's name.
 link_or_links - A Hash or an Array of hashes with the links to build.
 curies        - An Array of Curies for templated links.
 entry_point   - The EntryPoint object to inject the configuration.

 Returns a Link or an Array of Links when given an Array.