Sha256: a22240213b9c1b092d455fa8f3fb39b351709a9e934b5d91e110b0015bb51b2d
Contents?: true
Size: 703 Bytes
Versions: 23
Compression:
Stored size: 703 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/Position. module Position # Alias positionName with fallback. # # @return [String, String] the name of the Grom::Node or an empty string. def name respond_to?(:positionName) ? positionName : 'Chair' end # Alias positionHasIncumbency with fallback. # # @return [Array, Array] all the incumbencies of the Grom::Node or an empty array. def incumbencies respond_to?(:positionHasIncumbency) ? positionHasIncumbency : [] end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems