Class: SchemaDotOrg::Event
- Inherits:
-
SchemaType
- Object
- SchemaType
- SchemaDotOrg::Event
- Defined in:
- app/models/schema_dot_org/event.rb
Overview
https://schema.org/Event
Google rich result docs: https://developers.google.com/search/docs/appearance/structured-data/event
Helper class scoped to SchemaDotOrg.
Constant Summary
Constants inherited from SchemaType
SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX
Instance Attribute Summary collapse
-
#location ⇒ VirtualLocation
Event location.
-
#name ⇒ String
Event name.
-
#startDate ⇒ DateTime
Event start date and time.
Attributes inherited from SchemaType
Method Summary
Methods inherited from SchemaType
#_to_json_struct, attribute, #initialize, #to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname
Constructor Details
This class inherits a constructor from SchemaDotOrg::SchemaType
Instance Attribute Details
#location ⇒ VirtualLocation
Returns Event location.
29 |
# File 'app/models/schema_dot_org/event.rb', line 29 validates :location, presence: true |
#name ⇒ String
Returns Event name.
23 |
# File 'app/models/schema_dot_org/event.rb', line 23 validates :name, presence: true |
#startDate ⇒ DateTime
Returns Event start date and time.
26 |
# File 'app/models/schema_dot_org/event.rb', line 26 validates :startDate, presence: true |