Module: Parliament::Decorators::GenderIdentity

Defined in:
lib/parliament/decorators/gender_identity.rb

Overview

Decorator namespace for Grom::Node instances with type: id.ukpds.org/schema/GenderIdentity

Instance Method Summary collapse

Instance Method Details

#genderGrom::Node?

Alias genderIdentityHasGender with fallback.

Returns:


8
9
10
# File 'lib/parliament/decorators/gender_identity.rb', line 8

def gender
  respond_to?(:genderIdentityHasGender) ? genderIdentityHasGender.first : nil
end