Class: OpenActive::Models::Person

Inherits:
Schema::Person show all
Defined in:
lib/openactive/models/person.rb

Overview

This type is derived from [Person](schema.org/Person), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Instance Attribute Summary collapse

Attributes inherited from Schema::Person

#additional_name, #affiliation, #alumni_of, #award, #awards, #birth_date, #birth_place, #brand, #call_sign, #children, #colleague, #colleagues, #contact_point, #contact_points, #death_date, #death_place, #duns, #fax_number, #follows, #funder, #global_location_number, #has_credential, #has_occupation, #has_offer_catalog, #has_pos, #height, #home_location, #honorific_prefix, #honorific_suffix, #isic_v4, #knows, #knows_about, #knows_language, #makes_offer, #member_of, #naics, #nationality, #net_worth, #owns, #parent, #parents, #performer_in, #publishing_principles, #related_to, #seeks, #sibling, #siblings, #sponsor, #spouse, #tax_id, #weight, #work_location, #works_for

Attributes inherited from Schema::Thing

#additional_type, #alternate_name, #disambiguating_description, #image, #main_entity_of_page, #potential_action, #subject_of

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#addressOpenActive::Models::PostalAddress



31
32
33
# File 'lib/openactive/models/person.rb', line 31

def address
  @address
end

#descriptionString

Returns:

  • (String)


26
27
28
# File 'lib/openactive/models/person.rb', line 26

def description
  @description
end

#emailString

Returns:

  • (String)


36
37
38
# File 'lib/openactive/models/person.rb', line 36

def email
  @email
end

#family_nameString

Returns:

  • (String)


41
42
43
# File 'lib/openactive/models/person.rb', line 41

def family_name
  @family_name
end

#formatted_descriptionString

Returns:

  • (String)


103
104
105
# File 'lib/openactive/models/person.rb', line 103

def formatted_description
  @formatted_description
end

#genderOpenActive::Enums::Schema::GenderType?



46
47
48
# File 'lib/openactive/models/person.rb', line 46

def gender
  @gender
end

#given_nameString

Returns:

  • (String)


52
53
54
# File 'lib/openactive/models/person.rb', line 52

def given_name
  @given_name
end

#identifierint, ...



12
13
14
# File 'lib/openactive/models/person.rb', line 12

def identifier
  @identifier
end

#job_titleString

Returns:

  • (String)


57
58
59
# File 'lib/openactive/models/person.rb', line 57

def job_title
  @job_title
end

Returns:

  • (String)


62
63
64
# File 'lib/openactive/models/person.rb', line 62

def legal_name
  @legal_name
end

#logoOpenActive::Models::ImageObject



67
68
69
# File 'lib/openactive/models/person.rb', line 67

def 
  @logo
end

#nameString

Returns:

  • (String)


21
22
23
# File 'lib/openactive/models/person.rb', line 21

def name
  @name
end

#same_asArray<URI>

Returns:

  • (Array<URI>)


72
73
74
# File 'lib/openactive/models/person.rb', line 72

def same_as
  @same_as
end

#tax_modeOpenActive::Enums::TaxMode?

Returns:



77
78
79
# File 'lib/openactive/models/person.rb', line 77

def tax_mode
  @tax_mode
end

#telephoneString

Returns:

  • (String)


83
84
85
# File 'lib/openactive/models/person.rb', line 83

def telephone
  @telephone
end

#terms_of_serviceArray<OpenActive::Models::Terms>

Returns:



88
89
90
# File 'lib/openactive/models/person.rb', line 88

def terms_of_service
  @terms_of_service
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/person.rb', line 7

def type
  "Person"
end

#urlURI

Returns:

  • (URI)


93
94
95
# File 'lib/openactive/models/person.rb', line 93

def url
  @url
end

#vat_idString

Returns:

  • (String)


98
99
100
# File 'lib/openactive/models/person.rb', line 98

def vat_id
  @vat_id
end