Module: Parliament::Grom::Decorator::Concept

Defined in:
lib/parliament/grom/decorator/concept.rb

Overview

Decorator namespace for Grom::Node instances with type: id.parliament.uk/schema/Concept

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#broader_conceptsArray

Alias conceptHasBroaderConcept with fallback.

Since:

  • 0.1.0



37
38
39
# File 'lib/parliament/grom/decorator/concept.rb', line 37

def broader_concepts
  respond_to?(:conceptHasBroaderConcept) ? conceptHasBroaderConcept : []
end

#definitionString

Alias conceptDefinition with fallback.

Since:

  • 0.1.0



23
24
25
# File 'lib/parliament/grom/decorator/concept.rb', line 23

def definition
  respond_to?(:conceptDefinition) ? conceptDefinition : ''
end

#descriptionString

Alias conceptScopeNote with fallback.

Since:

  • 0.1.0



16
17
18
# File 'lib/parliament/grom/decorator/concept.rb', line 16

def description
  respond_to?(:conceptScopeNote) ? conceptScopeNote : ''
end

#nameString

Alias conceptLabel with fallback.

Since:

  • 0.1.0



9
10
11
# File 'lib/parliament/grom/decorator/concept.rb', line 9

def name
  respond_to?(:conceptLabel) ? conceptLabel : ''
end

#narrower_conceptsArray

Alias conceptHasNarrowerConcept with fallback.

Since:

  • 0.1.0



44
45
46
# File 'lib/parliament/grom/decorator/concept.rb', line 44

def narrower_concepts
  respond_to?(:conceptHasNarrowerConcept) ? conceptHasNarrowerConcept : []
end

#tagged_articlesArray

Alias conceptHasSubjectTaggedThing with fallback.

Since:

  • 0.1.0



30
31
32
# File 'lib/parliament/grom/decorator/concept.rb', line 30

def tagged_articles
  respond_to?(:conceptHasSubjectTaggedThing) ? conceptHasSubjectTaggedThing : []
end