Sha256: 72d4ed7e1cdd0004a788c6a1665f2130303fcc1de561e05f926fcf526fce3cd7

Contents?: true

Size: 506 Bytes

Versions: 23

Compression:

Stored size: 506 Bytes

Contents

module Parliament
  module Grom
    module Decorator
      # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/FormalBodyChair.
      module FormalBodyType
        # Checks if Grom::Node has a formal body type name.
        #
        # @return [String, String] a string depending on whether or not the Grom::Node has a formal body type name.
        def name
          respond_to?(:formalbodyTypeName) ? formalbodyTypeName : ''
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
parliament-grom-decorators-0.32.1 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.32.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.31.1 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.31.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.31.0.pre.rc lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.30.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.29.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.7 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.6 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.5 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.4 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.3 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.2 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.1 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.27.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.26.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.25.1 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.25.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.24.0 lib/parliament/grom/decorator/formal_body_type.rb
parliament-grom-decorators-0.23.0 lib/parliament/grom/decorator/formal_body_type.rb