lib/openactive/models/schema/place.rb in openactive-0.1.2 vs lib/openactive/models/schema/place.rb in openactive-0.2.0
- old
+ new
@@ -6,241 +6,278 @@
# @return [String]
def type
"schema:Place"
end
- # @return [OpenActive::Models::Schema::Event]
- define_property :events, as: "events", types: [
- "OpenActive::Models::Schema::Event",
+ # @return [OpenActive::Models::Schema::AggregateRating,URI]
+ define_property :aggregate_rating, as: "aggregateRating", types: [
+ "OpenActive::Models::Schema::AggregateRating",
+ "URI",
]
- # @return [OpenActive::Models::Schema::Place]
- define_property :contained_in, as: "containedIn", types: [
- "OpenActive::Models::Schema::Place",
- ]
-
- # @return [OpenActive::Models::Schema::OpeningHoursSpecification]
- define_property :special_opening_hours_specification, as: "specialOpeningHoursSpecification", types: [
- "OpenActive::Models::Schema::OpeningHoursSpecification",
- ]
-
- # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place]
- define_property :geo_within, as: "geoWithin", types: [
+ # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI]
+ define_property :geo_intersects, as: "geoIntersects", types: [
"OpenActive::Models::Schema::GeospatialGeometry",
"OpenActive::Models::Schema::Place",
+ "URI",
]
- # @return [OpenActive::Models::Schema::LocationFeatureSpecification]
- define_property :amenity_feature, as: "amenityFeature", types: [
- "OpenActive::Models::Schema::LocationFeatureSpecification",
+ # @return [OpenActive::Models::Schema::Photograph,OpenActive::Models::Schema::ImageObject,URI]
+ define_property :photos, as: "photos", types: [
+ "OpenActive::Models::Schema::Photograph",
+ "OpenActive::Models::Schema::ImageObject",
+ "URI",
]
- # @return [OpenActive::Models::Schema::ImageObject,OpenActive::Models::Schema::Photograph]
- define_property :photo, as: "photo", types: [
- "OpenActive::Models::Schema::ImageObject",
- "OpenActive::Models::Schema::Photograph",
+ # @return [String,OpenActive::Models::Schema::PostalAddress,URI]
+ define_property :address, as: "address", types: [
+ "string",
+ "OpenActive::Models::Schema::PostalAddress",
+ "URI",
]
- # @return [OpenActive::Models::Schema::ImageObject,URI]
- define_property :logo, as: "logo", types: [
- "OpenActive::Models::Schema::ImageObject",
+ # @return [URI]
+ define_property :tour_booking_page, as: "tourBookingPage", types: [
"URI",
]
# @return [String,BigDecimal,nil]
- define_property :latitude, as: "latitude", types: [
+ define_property :longitude, as: "longitude", types: [
"string",
"Number",
"null",
]
+ # @return [OpenActive::Models::Schema::GeoCoordinates,OpenActive::Models::Schema::GeoShape,URI]
+ define_property :geo, as: "geo", types: [
+ "OpenActive::Models::Schema::GeoCoordinates",
+ "OpenActive::Models::Schema::GeoShape",
+ "URI",
+ ]
+
# @return [String]
- define_property :telephone, as: "telephone", types: [
+ define_property :global_location_number, as: "globalLocationNumber", types: [
"string",
]
- # @return [URI]
- define_property :maps, as: "maps", types: [
+ # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI]
+ define_property :geo_covered_by, as: "geoCoveredBy", types: [
+ "OpenActive::Models::Schema::GeospatialGeometry",
+ "OpenActive::Models::Schema::Place",
"URI",
]
- # @return [OpenActive::Models::Schema::GeoCoordinates,OpenActive::Models::Schema::GeoShape]
- define_property :geo, as: "geo", types: [
- "OpenActive::Models::Schema::GeoCoordinates",
- "OpenActive::Models::Schema::GeoShape",
+ # @return [OpenActive::Models::Schema::Place,URI]
+ define_property :contained_in_place, as: "containedInPlace", types: [
+ "OpenActive::Models::Schema::Place",
+ "URI",
]
- # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place]
- define_property :geo_overlaps, as: "geoOverlaps", types: [
- "OpenActive::Models::Schema::GeospatialGeometry",
- "OpenActive::Models::Schema::Place",
+ # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI]
+ define_property :special_opening_hours_specification, as: "specialOpeningHoursSpecification", types: [
+ "OpenActive::Models::Schema::OpeningHoursSpecification",
+ "URI",
]
- # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry]
- define_property :geo_covers, as: "geoCovers", types: [
+ # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI]
+ define_property :geo_overlaps, as: "geoOverlaps", types: [
"OpenActive::Models::Schema::Place",
"OpenActive::Models::Schema::GeospatialGeometry",
+ "URI",
]
+ # @return [OpenActive::Models::Schema::Photograph,OpenActive::Models::Schema::ImageObject,URI]
+ define_property :photo, as: "photo", types: [
+ "OpenActive::Models::Schema::Photograph",
+ "OpenActive::Models::Schema::ImageObject",
+ "URI",
+ ]
+
# @return [String]
- define_property :global_location_number, as: "globalLocationNumber", types: [
+ define_property :isic_v4, as: "isicV4", types: [
"string",
]
- # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place]
- define_property :geo_equals, as: "geoEquals", types: [
- "OpenActive::Models::Schema::GeospatialGeometry",
- "OpenActive::Models::Schema::Place",
+ # @return [OpenActive::Models::Schema::Review,URI]
+ define_property :reviews, as: "reviews", types: [
+ "OpenActive::Models::Schema::Review",
+ "URI",
]
- # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry]
- define_property :geo_crosses, as: "geoCrosses", types: [
- "OpenActive::Models::Schema::Place",
- "OpenActive::Models::Schema::GeospatialGeometry",
- ]
-
- # @return [OpenActive::Models::Schema::Review]
+ # @return [OpenActive::Models::Schema::Review,URI]
define_property :review, as: "review", types: [
"OpenActive::Models::Schema::Review",
+ "URI",
]
- # @return [OpenActive::Models::Schema::Review]
- define_property :reviews, as: "reviews", types: [
- "OpenActive::Models::Schema::Review",
+ # @return [OpenActive::Models::Schema::Event,URI]
+ define_property :events, as: "events", types: [
+ "OpenActive::Models::Schema::Event",
+ "URI",
]
- # @return [Boolean,nil]
- define_property :public_access, as: "publicAccess", types: [
- "bool",
- "null",
+ # @return [OpenActive::Models::Schema::OpeningHoursSpecification,URI]
+ define_property :opening_hours_specification, as: "openingHoursSpecification", types: [
+ "OpenActive::Models::Schema::OpeningHoursSpecification",
+ "URI",
]
- # @return [URI]
- define_property :map, as: "map", types: [
+ # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI]
+ define_property :geo_within, as: "geoWithin", types: [
+ "OpenActive::Models::Schema::Place",
+ "OpenActive::Models::Schema::GeospatialGeometry",
"URI",
]
- # @return [OpenActive::Models::Schema::Event]
- define_property :event, as: "event", types: [
- "OpenActive::Models::Schema::Event",
+ # @return [Boolean,nil]
+ define_property :has_drive_through_service, as: "hasDriveThroughService", types: [
+ "bool",
+ "null",
]
- # @return [BigDecimal,String,nil]
- define_property :longitude, as: "longitude", types: [
- "Number",
- "string",
- "null",
+ # @return [OpenActive::Models::Schema::Place,URI]
+ define_property :contained_in, as: "containedIn", types: [
+ "OpenActive::Models::Schema::Place",
+ "URI",
]
- # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place]
- define_property :geo_touches, as: "geoTouches", types: [
+ # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI]
+ define_property :geo_covers, as: "geoCovers", types: [
"OpenActive::Models::Schema::GeospatialGeometry",
"OpenActive::Models::Schema::Place",
+ "URI",
]
- # @return [OpenActive::Models::Schema::PropertyValue]
- define_property :additional_property, as: "additionalProperty", types: [
- "OpenActive::Models::Schema::PropertyValue",
+ # @return [URI]
+ define_property :map, as: "map", types: [
+ "URI",
]
- # @return [OpenActive::Models::Schema::Place]
- define_property :contains_place, as: "containsPlace", types: [
- "OpenActive::Models::Schema::Place",
+ # @return [OpenActive::Models::Schema::LocationFeatureSpecification,URI]
+ define_property :amenity_feature, as: "amenityFeature", types: [
+ "OpenActive::Models::Schema::LocationFeatureSpecification",
+ "URI",
]
- # @return [String,OpenActive::Models::Schema::PostalAddress]
- define_property :address, as: "address", types: [
- "string",
- "OpenActive::Models::Schema::PostalAddress",
+ # @return [OpenActive::Models::Schema::Event,URI]
+ define_property :event, as: "event", types: [
+ "OpenActive::Models::Schema::Event",
+ "URI",
]
- # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry]
- define_property :geo_intersects, as: "geoIntersects", types: [
- "OpenActive::Models::Schema::Place",
- "OpenActive::Models::Schema::GeospatialGeometry",
+ # @return [OpenActive::Models::Schema::PropertyValue,URI]
+ define_property :additional_property, as: "additionalProperty", types: [
+ "OpenActive::Models::Schema::PropertyValue",
+ "URI",
]
- # @return [OpenActive::Models::Schema::Place]
- define_property :contained_in_place, as: "containedInPlace", types: [
- "OpenActive::Models::Schema::Place",
+ # @return [String]
+ define_property :telephone, as: "telephone", types: [
+ "string",
]
- # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry]
- define_property :geo_disjoint, as: "geoDisjoint", types: [
- "OpenActive::Models::Schema::Place",
- "OpenActive::Models::Schema::GeospatialGeometry",
+ # @return [OpenActive::Models::Schema::ImageObject,URI]
+ define_property :logo, as: "logo", types: [
+ "OpenActive::Models::Schema::ImageObject",
+ "URI",
]
+ # @return [Boolean,nil]
+ define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [
+ "bool",
+ "null",
+ ]
+
# @return [int,nil]
define_property :maximum_attendee_capacity, as: "maximumAttendeeCapacity", types: [
"int",
"null",
]
# @return [String]
- define_property :isic_v4, as: "isicV4", types: [
+ define_property :slogan, as: "slogan", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Photograph,OpenActive::Models::Schema::ImageObject]
- define_property :photos, as: "photos", types: [
- "OpenActive::Models::Schema::Photograph",
- "OpenActive::Models::Schema::ImageObject",
+ # @return [URI]
+ define_property :maps, as: "maps", types: [
+ "URI",
]
- # @return [OpenActive::Models::Schema::Map,URI]
+ # @return [URI,OpenActive::Models::Schema::Map]
define_property :has_map, as: "hasMap", types: [
+ "URI",
"OpenActive::Models::Schema::Map",
+ ]
+
+ # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI]
+ define_property :geo_equals, as: "geoEquals", types: [
+ "OpenActive::Models::Schema::Place",
+ "OpenActive::Models::Schema::GeospatialGeometry",
"URI",
]
- # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry]
- define_property :geo_covered_by, as: "geoCoveredBy", types: [
+ # @return [OpenActive::Models::Schema::Place,URI]
+ define_property :contains_place, as: "containsPlace", types: [
"OpenActive::Models::Schema::Place",
+ "URI",
+ ]
+
+ # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI]
+ define_property :geo_disjoint, as: "geoDisjoint", types: [
+ "OpenActive::Models::Schema::Place",
"OpenActive::Models::Schema::GeospatialGeometry",
+ "URI",
]
+ # @return [String,BigDecimal,nil]
+ define_property :latitude, as: "latitude", types: [
+ "string",
+ "Number",
+ "null",
+ ]
+
# @return [Boolean,nil]
- define_property :is_accessible_for_free, as: "isAccessibleForFree", types: [
+ define_property :smoking_allowed, as: "smokingAllowed", types: [
"bool",
"null",
]
# @return [String]
define_property :fax_number, as: "faxNumber", types: [
"string",
]
# @return [String]
- define_property :slogan, as: "slogan", types: [
+ define_property :branch_code, as: "branchCode", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry]
- define_property :geo_contains, as: "geoContains", types: [
+ # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeospatialGeometry,URI]
+ define_property :geo_touches, as: "geoTouches", types: [
"OpenActive::Models::Schema::Place",
"OpenActive::Models::Schema::GeospatialGeometry",
+ "URI",
]
- # @return [String]
- define_property :branch_code, as: "branchCode", types: [
- "string",
+ # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI]
+ define_property :geo_crosses, as: "geoCrosses", types: [
+ "OpenActive::Models::Schema::GeospatialGeometry",
+ "OpenActive::Models::Schema::Place",
+ "URI",
]
- # @return [OpenActive::Models::Schema::AggregateRating]
- define_property :aggregate_rating, as: "aggregateRating", types: [
- "OpenActive::Models::Schema::AggregateRating",
+ # @return [OpenActive::Models::Schema::GeospatialGeometry,OpenActive::Models::Schema::Place,URI]
+ define_property :geo_contains, as: "geoContains", types: [
+ "OpenActive::Models::Schema::GeospatialGeometry",
+ "OpenActive::Models::Schema::Place",
+ "URI",
]
# @return [Boolean,nil]
- define_property :smoking_allowed, as: "smokingAllowed", types: [
+ define_property :public_access, as: "publicAccess", types: [
"bool",
"null",
- ]
-
- # @return [OpenActive::Models::Schema::OpeningHoursSpecification]
- define_property :opening_hours_specification, as: "openingHoursSpecification", types: [
- "OpenActive::Models::Schema::OpeningHoursSpecification",
]
end
end
end
end