lib/openactive/models/schema/thing.rb in openactive-0.3.0 vs lib/openactive/models/schema/thing.rb in openactive-0.4.0
- old
+ new
@@ -6,30 +6,26 @@
# @return [String]
def type
"schema:Thing"
end
- # @return [URI,String,OpenActive::Models::Schema::PropertyValue]
+ # @return [String,OpenActive::Models::Schema::PropertyValue,URI]
define_property :identifier, as: "identifier", types: [
- "URI",
"string",
"OpenActive::Models::Schema::PropertyValue",
+ "URI",
]
# @return [String]
define_property :name, as: "name", types: [
"string",
]
- # @return [String]
+ # @return [String,OpenActive::Models::Schema::TextObject,URI]
define_property :description, as: "description", types: [
"string",
- ]
-
- # @return [OpenActive::Models::Schema::CreativeWork,URI]
- define_property :main_entity_of_page, as: "mainEntityOfPage", types: [
- "OpenActive::Models::Schema::CreativeWork",
+ "OpenActive::Models::Schema::TextObject",
"URI",
]
# @return [String]
define_property :alternate_name, as: "alternateName", types: [
@@ -40,39 +36,46 @@
define_property :potential_action, as: "potentialAction", types: [
"OpenActive::Models::Schema::Action",
"URI",
]
- # @return [URI,OpenActive::Models::Schema::ImageObject]
- define_property :image, as: "image", types: [
- "URI",
- "OpenActive::Models::Schema::ImageObject",
- ]
-
# @return [URI]
- define_property :url, as: "url", types: [
+ define_property :same_as, as: "sameAs", types: [
"URI",
]
# @return [OpenActive::Models::Schema::Event,OpenActive::Models::Schema::CreativeWork,URI]
define_property :subject_of, as: "subjectOf", types: [
"OpenActive::Models::Schema::Event",
"OpenActive::Models::Schema::CreativeWork",
"URI",
]
- # @return [URI]
- define_property :additional_type, as: "additionalType", types: [
- "URI",
- ]
-
# @return [String]
define_property :disambiguating_description, as: "disambiguatingDescription", types: [
"string",
]
+ # @return [OpenActive::Models::Schema::ImageObject,URI]
+ define_property :image, as: "image", types: [
+ "OpenActive::Models::Schema::ImageObject",
+ "URI",
+ ]
+
# @return [URI]
- define_property :same_as, as: "sameAs", types: [
+ define_property :url, as: "url", types: [
+ "URI",
+ ]
+
+ # @return [OpenActive::Models::Schema::CreativeWork,URI]
+ define_property :main_entity_of_page, as: "mainEntityOfPage", types: [
+ "OpenActive::Models::Schema::CreativeWork",
+ "URI",
+ ]
+
+ # @return [String,URI]
+ define_property :additional_type, as: "additionalType", types: [
+ "string",
"URI",
]
end
end
end