Module: Parliament::Grom::Decorator::FormalBodyChair

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

Overview

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

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#incumbenciesArray

Alias positionHasIncumbency with fallback.

Returns:

  • (Array, Array)

    all the incumbencies of the Grom::Node or an empty array.

Since:

  • 0.1.0



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

def incumbencies
  respond_to?(:positionHasIncumbency) ? positionHasIncumbency : []
end