Sha256: c6833079f13ce3107e4dd6a826cb1575fa13022f753fcad65f093b8d9ec54606

Contents?: true

Size: 427 Bytes

Versions: 27

Compression:

Stored size: 427 Bytes

Contents

module Parliament
  module Grom
    module Decorator
      # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/Gender
      module Gender
        # Alias genderName with fallback.
        #
        # @return [String, String] the gender name of the Grom::Node or an empty string.
        def name
          respond_to?(:genderName) ? genderName : ''
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
parliament-grom-decorators-0.27.3 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.27.2 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.27.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.27.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.26.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.25.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.25.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.24.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.23.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.22.2 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.22.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.22.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.21.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.19.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.18.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.17.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.16.4 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.16.3 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.16.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.16.0 lib/parliament/grom/decorator/gender.rb