Sha256: dacffb2d8d9baa1a5f5ac8423c7b867162fdd3ca8bd8a65068336e45ad9ba281
Contents?: true
Size: 514 Bytes
Versions: 15
Compression:
Stored size: 514 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/governmentPosition. # rubocop:disable ModuleLength module GovernmentPosition # Checks if Grom::Node has a name. # # @return [String, String] a string depending on whether or not the Grom::Node has a name. def name @name ||= respond_to?(:positionName) ? positionName : '' end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems