Class: Person

Inherits:
ArchDefObject show all
Defined in:
lib/arch_obj_models/obj.rb

Overview

Personal information about a contributor

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ArchDefObject

Instance Method Details

#companyString?

Returns:

  • (String)

    Company the person works for

  • (nil)

    if the company is not known, or if the person is an individual contributor



254
# File 'lib/arch_obj_models/obj.rb', line 254

def company = @data["company"]

#emailString?

Returns:

  • (String)

    Email address

  • (nil)

    if email address is not known



250
# File 'lib/arch_obj_models/obj.rb', line 250

def email = @data["email"]

#nameString

Returns Person’s name.

Returns:

  • (String)

    Person’s name



246
# File 'lib/arch_obj_models/obj.rb', line 246

def name = @data["name"]