Class: SchemaDotOrg::WebSite
- Inherits:
-
SchemaType
- Object
- ValidatedObject::Base
- SchemaType
- SchemaDotOrg::WebSite
- Defined in:
- lib/schema_dot_org/web_site.rb
Overview
Model the Schema.org ‘Thing > CreativeWork > WebSite`.
Constant Summary
Constants inherited from SchemaType
SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#potential_action ⇒ Object
Returns the value of attribute potential_action.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods inherited from SchemaType
#to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/schema_dot_org/web_site.rb', line 11 def name @name end |
#potential_action ⇒ Object
Returns the value of attribute potential_action.
11 12 13 |
# File 'lib/schema_dot_org/web_site.rb', line 11 def potential_action @potential_action end |
#url ⇒ Object
Returns the value of attribute url.
11 12 13 |
# File 'lib/schema_dot_org/web_site.rb', line 11 def url @url end |
Instance Method Details
#_to_json_struct ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/schema_dot_org/web_site.rb', line 16 def _to_json_struct { 'name' => self.name, 'url' => self.url, 'potentialAction' => self.potential_action&.to_json_struct } end |