Class: OpenActive::Models::Place

Inherits:
Schema::Place show all
Defined in:
lib/openactive/models/place.rb

Overview

This type is derived from [Place](schema.org/Place), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Instance Attribute Summary collapse

Attributes inherited from Schema::Place

#additional_property, #aggregate_rating, #branch_code, #contained_in, #event, #events, #fax_number, #geo_contains, #geo_covered_by, #geo_covers, #geo_crosses, #geo_disjoint, #geo_equals, #geo_intersects, #geo_overlaps, #geo_touches, #geo_within, #global_location_number, #has_map, #is_accessible_for_free, #isic_v4, #latitude, #logo, #longitude, #map, #maps, #maximum_attendee_capacity, #photo, #photos, #public_access, #review, #reviews, #slogan, #smoking_allowed, #special_opening_hours_specification

Attributes inherited from Schema::Thing

#additional_type, #alternate_name, #disambiguating_description, #main_entity_of_page, #potential_action, #same_as, #subject_of

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#addressString, OpenActive::Models::PostalAddress



31
32
33
# File 'lib/openactive/models/place.rb', line 31

def address
  @address
end

#amenity_featureArray<OpenActive::Models::LocationFeatureSpecification>



37
38
39
# File 'lib/openactive/models/place.rb', line 37

def amenity_feature
  @amenity_feature
end

#contained_in_placeOpenActive::Models::Place



42
43
44
# File 'lib/openactive/models/place.rb', line 42

def contained_in_place
  @contained_in_place
end

#contains_placeArray<OpenActive::Models::Place>

Returns:



47
48
49
# File 'lib/openactive/models/place.rb', line 47

def contains_place
  @contains_place
end

#descriptionString

Returns:

  • (String)


26
27
28
# File 'lib/openactive/models/place.rb', line 26

def description
  @description
end

#formatted_descriptionString

Returns:

  • (String)


77
78
79
# File 'lib/openactive/models/place.rb', line 77

def formatted_description
  @formatted_description
end

#geoOpenActive::Models::GeoCoordinates



52
53
54
# File 'lib/openactive/models/place.rb', line 52

def geo
  @geo
end

#identifierint, ...



12
13
14
# File 'lib/openactive/models/place.rb', line 12

def identifier
  @identifier
end

#imageArray<OpenActive::Models::ImageObject>



57
58
59
# File 'lib/openactive/models/place.rb', line 57

def image
  @image
end

#nameString

Returns:

  • (String)


21
22
23
# File 'lib/openactive/models/place.rb', line 21

def name
  @name
end

#opening_hours_specificationArray<OpenActive::Models::OpeningHoursSpecification>



62
63
64
# File 'lib/openactive/models/place.rb', line 62

def opening_hours_specification
  @opening_hours_specification
end

#telephoneString

Returns:

  • (String)


67
68
69
# File 'lib/openactive/models/place.rb', line 67

def telephone
  @telephone
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/place.rb', line 7

def type
  "Place"
end

#urlURI

Returns:

  • (URI)


72
73
74
# File 'lib/openactive/models/place.rb', line 72

def url
  @url
end