Module: Parliament::Decorators::Gender

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#nameString

Alias genderName with fallback.

Returns:

  • (String, String)

    the gender name of the Grom::Node or an empty string.


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

def name
  respond_to?(:genderName) ? genderName : ''
end