Module: SchemaOrg::Mixins::HowToItem
- Includes:
- ListItem
- Included in:
- HowToItem, HowToSupply, HowToTool
- Defined in:
- lib/schema_org/mixins/how_to_item.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#required_quantity ⇒ Object
The required quantity of the item(s).
-
#required_quantity=(value) ⇒ Object
The required quantity of the item(s).
Methods included from ListItem
#item, #item=, #next_item, #next_item=, #position, #position=, #previous_item, #previous_item=
Methods included from Thing
#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, #subject_of, #subject_of=, #url, #url=
Class Method Details
.schema_property_definitions ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/schema_org/mixins/how_to_item.rb', line 11 def self.schema_property_definitions { required_quantity: { schema_name: "requiredQuantity", schema_url: "https://schema.org/requiredQuantity", comment_lines: ["The required quantity of the item(s)."].freeze, ranges: ["Number", "QuantitativeValue", "Text"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze }.freeze end |
Instance Method Details
#required_quantity ⇒ Object
The required quantity of the item(s).
27 28 29 |
# File 'lib/schema_org/mixins/how_to_item.rb', line 27 def required_quantity read_property(:required_quantity) end |
#required_quantity=(value) ⇒ Object
The required quantity of the item(s).
32 33 34 |
# File 'lib/schema_org/mixins/how_to_item.rb', line 32 def required_quantity=(value) write_property(:required_quantity, value) end |