Sha256: 3662658f2d25ff515bec5d0795578e748d2c5f4f2b090b1a0891615fa8fe8d7d

Contents?: true

Size: 498 Bytes

Versions: 27

Compression:

Stored size: 498 Bytes

Contents

module Parliament
  module Grom
    module Decorator
      # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/GenderIdentity
      module GenderIdentity
        # Alias genderIdentityHasGender with fallback.
        #
        # @return [Grom::Node, nil] a Grom::Node with type http://id.ukpds.org/schema/Gender or nil.
        def gender
          respond_to?(:genderIdentityHasGender) ? genderIdentityHasGender.first : nil
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
parliament-grom-decorators-0.10.1 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.10.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.9.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.8.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.7.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.6.1 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.6.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.4.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.3.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.8 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.7 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.6.pre lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.5.pre lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.4.pre lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.3 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.1 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.2.0 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.1.8 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.1.7 lib/parliament/grom/decorator/gender_identity.rb
parliament-grom-decorators-0.1.6 lib/parliament/grom/decorator/gender_identity.rb