Sha256: 89061aa3b691d4e563f1ead4c825a2785e51cf9e835af7b7ab5ac0f7cf005f0d
Contents?: true
Size: 675 Bytes
Versions: 5
Compression:
Stored size: 675 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: http://example.com/content/Collection # Collection Grom::Node is a Contentful object associated with a web article (a WebArticle has an Audience node) # Collection Grom::Node is not modelled in the data service, hence type 'http://example..' and not 'https://id.parliament.uk/schema' module Collection # Alias name with fallback. # # @return [String, String] the title of the Grom::Node or an empty string. def collection_name respond_to?(:name) ? name : '' end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems