Class: SchemaDotOrg::Event

Inherits:
SchemaType show all
Defined in:
app/models/schema_dot_org/event.rb

Constant Summary

Constants inherited from SchemaType

SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX

Instance Attribute Summary collapse

Attributes inherited from SchemaType

#id_iri

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

#locationObject (readonly)



19
# File 'app/models/schema_dot_org/event.rb', line 19

validates :location, presence: true

#nameObject (readonly)



17
# File 'app/models/schema_dot_org/event.rb', line 17

validates :name, presence: true

#startDateObject (readonly)



18
# File 'app/models/schema_dot_org/event.rb', line 18

validates :startDate, presence: true