Sha256: 33157ebe19976e6a591accaabb57eee8f8fd82ff7016c7bc6979765dcfbc6614

Contents?: true

Size: 881 Bytes

Versions: 7

Compression:

Stored size: 881 Bytes

Contents

module Parliament
  module Grom
    module Decorator
      module Person
        # Builds a full name using personGivenName and personFamilyName.
        #
        # @return [String, String] the full name of the Grom::Node or an empty string.
        def full_name
          return @full_name unless @full_name.nil?

          full_name = []
          full_name << personGivenName if respond_to?(:personGivenName)
          full_name << personFamilyName if respond_to?(:personFamilyName)

          @full_name = full_name.join(' ')
        end

        # Alias F31CBD81AD8343898B49DC65743F0BDF with fallback.
        #
        # @return [String, String] the display name of the Grom::Node or the full name.
        def display_name
          respond_to?(:F31CBD81AD8343898B49DC65743F0BDF) ? self.F31CBD81AD8343898B49DC65743F0BDF : full_name
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
parliament-grom-decorators-1.0.6 lib/parliament/grom/decorator/person.rb
parliament-grom-decorators-1.0.5 lib/parliament/grom/decorator/person.rb
parliament-grom-decorators-1.0.4 lib/parliament/grom/decorator/person.rb
parliament-grom-decorators-1.0.3 lib/parliament/grom/decorator/person.rb
parliament-grom-decorators-1.0.2 lib/parliament/grom/decorator/person.rb
parliament-grom-decorators-1.0.0 lib/parliament/grom/decorator/person.rb
parliament-grom-decorators-1.0.0.pre.pre lib/parliament/grom/decorator/person.rb