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