Sha256: f934cd9e2578f14a444498227552db1a1fd72a1d9e0d0b719253a2687a960b23
Contents?: true
Size: 590 Bytes
Versions: 27
Compression:
Stored size: 590 Bytes
Contents
require_relative 'resource' module Contentful # Resource Class for Links # https://www.contentful.com/developers/documentation/content-delivery-api/#links class Link include Contentful::Resource include Contentful::Resource::SystemProperties # Queries contentful for the Resource the Link is refering to # Takes an optional query hash def resolve(query = {}) id_and_query = [(id unless link_type == 'Space')].compact + [query] client.public_send( Contentful::Support.snakify(link_type).to_sym, *id_and_query ) end end end
Version data entries
27 entries across 27 versions & 1 rubygems