Class: SchemaDotOrg::Person
- Inherits:
-
SchemaType
- Object
- ValidatedObject::Base
- SchemaType
- SchemaDotOrg::Person
- Defined in:
- lib/schema_dot_org/person.rb
Overview
Model the Schema.org Person. See schema.org/Person
Constant Summary
Constants inherited from SchemaType
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from SchemaType
#to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/schema_dot_org/person.rb', line 8 def name @name end |
Instance Method Details
#_to_json_struct ⇒ Object
12 13 14 15 16 |
# File 'lib/schema_dot_org/person.rb', line 12 def _to_json_struct { name: self.name } end |