Class: OpenActive::Models::Schema::GeoShape

Inherits:
StructuredValue show all
Defined in:
lib/openactive/models/schema/geo_shape.rb

Direct Known Subclasses

GeoCircle

Instance Attribute Summary collapse

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

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::Schema::PostalAddress



50
51
52
# File 'lib/openactive/models/schema/geo_shape.rb', line 50

def address
  @address
end

#address_countryOpenActive::Models::Schema::Country, String



34
35
36
# File 'lib/openactive/models/schema/geo_shape.rb', line 34

def address_country
  @address_country
end

#boxString

Returns:

  • (String)


40
41
42
# File 'lib/openactive/models/schema/geo_shape.rb', line 40

def box
  @box
end

#circleString

Returns:

  • (String)


45
46
47
# File 'lib/openactive/models/schema/geo_shape.rb', line 45

def circle
  @circle
end

#elevationString, ...

Returns:

  • (String, BigDecimal, nil)


22
23
24
# File 'lib/openactive/models/schema/geo_shape.rb', line 22

def elevation
  @elevation
end

#lineString

Returns:

  • (String)


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

def line
  @line
end

#polygonString

Returns:

  • (String)


17
18
19
# File 'lib/openactive/models/schema/geo_shape.rb', line 17

def polygon
  @polygon
end

#postal_codeString

Returns:

  • (String)


29
30
31
# File 'lib/openactive/models/schema/geo_shape.rb', line 29

def postal_code
  @postal_code
end

#typeString

Returns:

  • (String)


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

def type
  "schema:GeoShape"
end