Module: SchemaOrg::Mixins::GeoCircle
Class Method Summary collapse
Instance Method Summary collapse
-
#geo_midpoint ⇒ Object
Indicates the GeoCoordinates at the centre of a GeoShape, e.g.
-
#geo_midpoint=(value) ⇒ Object
Indicates the GeoCoordinates at the centre of a GeoShape, e.g.
-
#geo_radius ⇒ Object
Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
-
#geo_radius=(value) ⇒ Object
Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
Methods included from GeoShape
#address, #address=, #address_country, #address_country=, #box, #box=, #circle, #circle=, #elevation, #elevation=, #line, #line=, #polygon, #polygon=, #postal_code, #postal_code=
Methods included from Thing
#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=, #url, #url=
Class Method Details
.schema_property_definitions ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/schema_org/mixins/geo_circle.rb', line 11 def self.schema_property_definitions { geo_midpoint: { schema_name: "geoMidpoint", schema_url: "https://schema.org/geoMidpoint", comment_lines: ["Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle."].freeze, ranges: ["GeoCoordinates"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze, geo_radius: { schema_name: "geoRadius", schema_url: "https://schema.org/geoRadius", comment_lines: ["Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation)."].freeze, ranges: ["Distance", "Number", "Text"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze }.freeze end |
Instance Method Details
#geo_midpoint ⇒ Object
Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle.
37 38 39 |
# File 'lib/schema_org/mixins/geo_circle.rb', line 37 def geo_midpoint read_property(:geo_midpoint) end |
#geo_midpoint=(value) ⇒ Object
Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle.
42 43 44 |
# File 'lib/schema_org/mixins/geo_circle.rb', line 42 def geo_midpoint=(value) write_property(:geo_midpoint, value) end |
#geo_radius ⇒ Object
Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
47 48 49 |
# File 'lib/schema_org/mixins/geo_circle.rb', line 47 def geo_radius read_property(:geo_radius) end |
#geo_radius=(value) ⇒ Object
Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
52 53 54 |
# File 'lib/schema_org/mixins/geo_circle.rb', line 52 def geo_radius=(value) write_property(:geo_radius, value) end |