Class: SchemaDotOrg::HowTo
- Inherits:
-
SchemaType
- Object
- SchemaType
- SchemaDotOrg::HowTo
- Defined in:
- app/models/schema_dot_org/how_to.rb
Overview
https://schema.org/HowTo
Helper class scoped to SchemaDotOrg.
Constant Summary
Constants inherited from SchemaType
SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX
Instance Attribute Summary
Attributes inherited from SchemaType
Instance Method Summary collapse
- #description ⇒ String
- #estimatedCost ⇒ String
- #image ⇒ String
- #name ⇒ String
- #step ⇒ Array<HowToStep>
- #supply ⇒ Array<String>
- #tool ⇒ Array<String>
-
#totalTime ⇒ String
ISO 8601 duration format (e.g., "PT2H" for 2 hours).
Methods inherited from SchemaType
#_to_json_struct, attribute, #initialize, #to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname
Constructor Details
This class inherits a constructor from SchemaDotOrg::SchemaType
Instance Method Details
#description ⇒ String
11 |
# File 'app/models/schema_dot_org/how_to.rb', line 11 attribute :description, String |
#estimatedCost ⇒ String
18 |
# File 'app/models/schema_dot_org/how_to.rb', line 18 attribute :estimatedCost, String |
#image ⇒ String
13 |
# File 'app/models/schema_dot_org/how_to.rb', line 13 attribute :image, String |
#name ⇒ String
Validations:
9 |
# File 'app/models/schema_dot_org/how_to.rb', line 9 attribute :name, String |
#step ⇒ Array<HowToStep>
Validations:
24 |
# File 'app/models/schema_dot_org/how_to.rb', line 24 attribute :step, [HowToStep] |
#supply ⇒ Array<String>
20 |
# File 'app/models/schema_dot_org/how_to.rb', line 20 attribute :supply, [String] |
#tool ⇒ Array<String>
22 |
# File 'app/models/schema_dot_org/how_to.rb', line 22 attribute :tool, [String] |
#totalTime ⇒ String
ISO 8601 duration format (e.g., "PT2H" for 2 hours)
16 |
# File 'app/models/schema_dot_org/how_to.rb', line 16 attribute :totalTime, String |