Class: SchemaOrg::DayOfWeek
Overview
https://schema.org/DayOfWeek
The day of the week, e.g. used to specify to which day the opening hours of an OpeningHoursSpecification refer.
Originally, URLs from GoodRelations were used (for [[Monday]], [[Tuesday]], [[Wednesday]], [[Thursday]], [[Friday]], [[Saturday]], [[Sunday]] plus a special entry for [[PublicHolidays]]); these have now been integrated directly into schema.org.
Constant Summary
collapse
- SCHEMA_NAME =
"DayOfWeek"
- SCHEMA_TYPES =
[self, SchemaOrg::Enumeration, SchemaOrg::Intangible, SchemaOrg::Thing].freeze
- FRIDAY =
EnumerationValue.new("Friday", [SchemaOrg::DayOfWeek])
- MONDAY =
EnumerationValue.new("Monday", [SchemaOrg::DayOfWeek])
- PUBLIC_HOLIDAYS =
EnumerationValue.new("PublicHolidays", [SchemaOrg::DayOfWeek])
- SATURDAY =
EnumerationValue.new("Saturday", [SchemaOrg::DayOfWeek])
- SUNDAY =
EnumerationValue.new("Sunday", [SchemaOrg::DayOfWeek])
- THURSDAY =
EnumerationValue.new("Thursday", [SchemaOrg::DayOfWeek])
- TUESDAY =
EnumerationValue.new("Tuesday", [SchemaOrg::DayOfWeek])
- WEDNESDAY =
EnumerationValue.new("Wednesday", [SchemaOrg::DayOfWeek])
- VALUES =
[FRIDAY, MONDAY, PUBLIC_HOLIDAYS, SATURDAY, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
schema_property_definitions
schema_property_definitions, #superseded_by, #superseded_by=
schema_property_definitions
#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, schema_property_definitions, #subject_of, #subject_of=, #url, #url=
Methods included from _DayOfWeek
#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, #subject_of, #subject_of=, #superseded_by, #superseded_by=, #url, #url=
Class Method Details
.new(**properties) ⇒ DayOfWeek
32
33
34
|
# File 'lib/schema_org/types/day_of_week.rb', line 32
def new(**properties)
super
end
|
.schema_name ⇒ String
19
20
21
|
# File 'lib/schema_org/types/day_of_week.rb', line 19
def schema_name
SCHEMA_NAME
end
|
.schema_type?(other_type) ⇒ Boolean
27
28
29
30
|
# File 'lib/schema_org/types/day_of_week.rb', line 27
def schema_type?(other_type)
Base.schema_type_argument!(other_type)
SCHEMA_TYPES.include?(other_type)
end
|
.schema_types ⇒ ::Array[::Class]
23
24
25
|
# File 'lib/schema_org/types/day_of_week.rb', line 23
def schema_types
SCHEMA_TYPES
end
|
.values ⇒ ::Array[SchemaOrg::EnumerationValue[SchemaOrg::_DayOfWeek]]
46
47
48
|
# File 'lib/schema_org/types/day_of_week.rb', line 46
def self.values
VALUES
end
|
Instance Method Details
#schema_type? ⇒ Boolean
34997
|
# File 'sig/schema_org.rbs', line 34997
def schema_type?: (untyped) -> bool
|
#schema_types ⇒ ::Array[::Class]
34996
|
# File 'sig/schema_org.rbs', line 34996
def schema_types: () -> ::Array[::Class]
|