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

Version Path
parliament-grom-decorators-0.21.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.19.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.18.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.17.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.16.4 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.16.3 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.16.1 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.16.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.15.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.14.1 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.14.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.13.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.12.1 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.12.0 lib/parliament/grom/decorator/government_position.rb
parliament-grom-decorators-0.11.0 lib/parliament/grom/decorator/government_position.rb