Module: Parliament::Grom::Decorator::ArticleType
- Defined in:
- lib/parliament/grom/decorator/article_type.rb
Overview
Decorator namespace for Grom::Node instances with type: 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 ‘example..’ and not ‘id.parliament.uk/schema’
Instance Method Summary collapse
-
#article_type_name ⇒ String
Alias name with fallback.
Instance Method Details
#article_type_name ⇒ String
Alias name with fallback.
11 12 13 |
# File 'lib/parliament/grom/decorator/article_type.rb', line 11 def article_type_name respond_to?(:name) ? name : '' end |