Sha256: 1aaade8f8fb3d54e84110328f58b11150c1116916afa8e2e4c0a9a6de55fc4a0
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# -*- encoding: utf-8 -*- require_relative 'resource' module Contentful module Management # Resource Class for Links # https://www.contentful.com/developers/documentation/content-delivery-api/#links class Link include Contentful::Management::Resource include Contentful::Management::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::Management::Support.snakify(link_type).to_sym, *id_and_query ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contentful-management-0.0.1.pre | lib/contentful/management/link.rb |