Module: Parliament::Grom::Decorator::Audience
- Defined in:
- lib/parliament/grom/decorator/audience.rb
Overview
Decorator namespace for Grom::Node instances with type: example.com/content/Audience Audience Grom::Node is a Contentful object associated with a web article (a WebArticle has an Audience node) Audience Grom::Node is not modelled in the data service, hence type ‘example..’ and not ‘id.parliament.uk/schema’
Instance Method Summary collapse
-
#audience_name ⇒ String
Alias name with fallback.
Instance Method Details
#audience_name ⇒ String
Alias name with fallback.
11 12 13 |
# File 'lib/parliament/grom/decorator/audience.rb', line 11 def audience_name respond_to?(:name) ? name : '' end |