Class: SchemaDotOrg::Place
- Inherits:
-
SchemaType
- Object
- ValidatedObject::Base
- SchemaType
- SchemaDotOrg::Place
- Defined in:
- lib/schema_dot_org/place.rb
Overview
Model the Schema.org ‘Thing > Place`. See schema.org/Place
Constant Summary
Constants inherited from SchemaType
SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
Instance Method Summary collapse
Methods inherited from SchemaType
#to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
7 8 9 |
# File 'lib/schema_dot_org/place.rb', line 7 def address @address end |
Instance Method Details
#_to_json_struct ⇒ Object
10 11 12 13 14 |
# File 'lib/schema_dot_org/place.rb', line 10 def _to_json_struct { 'address' => address } end |