Class: SchemaDotOrg::HowTo

Inherits:
SchemaType show all
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

#id_iri

Instance Method Summary collapse

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

#descriptionString

Returns:

  • (String)


11
# File 'app/models/schema_dot_org/how_to.rb', line 11

attribute :description, String

#estimatedCostString

Returns:

  • (String)


18
# File 'app/models/schema_dot_org/how_to.rb', line 18

attribute :estimatedCost, String

#imageString

Returns:

  • (String)


13
# File 'app/models/schema_dot_org/how_to.rb', line 13

attribute :image, String

#nameString

Returns:

  • (String)

Validations:



9
# File 'app/models/schema_dot_org/how_to.rb', line 9

attribute :name, String

#stepArray<HowToStep>

Returns:

Validations:



24
# File 'app/models/schema_dot_org/how_to.rb', line 24

attribute :step, [HowToStep]

#supplyArray<String>

Returns:

  • (Array<String>)


20
# File 'app/models/schema_dot_org/how_to.rb', line 20

attribute :supply, [String]

#toolArray<String>

Returns:

  • (Array<String>)


22
# File 'app/models/schema_dot_org/how_to.rb', line 22

attribute :tool, [String]

#totalTimeString

ISO 8601 duration format (e.g., "PT2H" for 2 hours)

Returns:

  • (String)


16
# File 'app/models/schema_dot_org/how_to.rb', line 16

attribute :totalTime, String