Module: SchemaOrg::Mixins::CookAction

Includes:
CreateAction
Included in:
CookAction
Defined in:
lib/schema_org/mixins/cook_action.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Action

#action_process, #action_process=, #action_status, #action_status=, #agent, #agent=, #end_time, #end_time=, #error, #error=, #instrument, #instrument=, #location, #location=, #object, #object=, #participant, #participant=, #provider, #provider=, #result, #result=, #start_time, #start_time=, #target, #target=

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_definitionsObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/schema_org/mixins/cook_action.rb', line 11

def self.schema_property_definitions
  {
    food_establishment: {
      schema_name: "foodEstablishment",
      schema_url: "https://schema.org/foodEstablishment",
      comment_lines: ["A sub property of location. The specific food establishment where the action occurred."].freeze,
      ranges: ["FoodEstablishment", "Place"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    food_event: {
      schema_name: "foodEvent",
      schema_url: "https://schema.org/foodEvent",
      comment_lines: ["A sub property of location. The specific food event where the action occurred."].freeze,
      ranges: ["FoodEvent"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    recipe: {
      schema_name: "recipe",
      schema_url: "https://schema.org/recipe",
      comment_lines: ["A sub property of instrument. The recipe/instructions used to perform the action."].freeze,
      ranges: ["Recipe"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze
  }.freeze
end

Instance Method Details

#food_establishmentObject

A sub property of location. The specific food establishment where the action occurred.



47
48
49
# File 'lib/schema_org/mixins/cook_action.rb', line 47

def food_establishment
  read_property(:food_establishment)
end

#food_establishment=(value) ⇒ Object

A sub property of location. The specific food establishment where the action occurred.



52
53
54
# File 'lib/schema_org/mixins/cook_action.rb', line 52

def food_establishment=(value)
  write_property(:food_establishment, value)
end

#food_eventObject

A sub property of location. The specific food event where the action occurred.



57
58
59
# File 'lib/schema_org/mixins/cook_action.rb', line 57

def food_event
  read_property(:food_event)
end

#food_event=(value) ⇒ Object

A sub property of location. The specific food event where the action occurred.



62
63
64
# File 'lib/schema_org/mixins/cook_action.rb', line 62

def food_event=(value)
  write_property(:food_event, value)
end

#recipeObject

A sub property of instrument. The recipe/instructions used to perform the action.



67
68
69
# File 'lib/schema_org/mixins/cook_action.rb', line 67

def recipe
  read_property(:recipe)
end

#recipe=(value) ⇒ Object

A sub property of instrument. The recipe/instructions used to perform the action.



72
73
74
# File 'lib/schema_org/mixins/cook_action.rb', line 72

def recipe=(value)
  write_property(:recipe, value)
end