Module: SchemaOrg::Mixins::ReplaceAction

Includes:
UpdateAction
Included in:
ReplaceAction
Defined in:
lib/schema_org/mixins/replace_action.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from UpdateAction

#collection, #collection=, #target_collection, #target_collection=

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
# File 'lib/schema_org/mixins/replace_action.rb', line 11

def self.schema_property_definitions
  {
    replacee: {
      schema_name: "replacee",
      schema_url: "https://schema.org/replacee",
      comment_lines: ["A sub property of object. The object that is being replaced."].freeze,
      ranges: ["Thing"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    replacer: {
      schema_name: "replacer",
      schema_url: "https://schema.org/replacer",
      comment_lines: ["A sub property of object. The object that replaces."].freeze,
      ranges: ["Thing"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze
  }.freeze
end

Instance Method Details

#replaceeObject

A sub property of object. The object that is being replaced.



37
38
39
# File 'lib/schema_org/mixins/replace_action.rb', line 37

def replacee
  read_property(:replacee)
end

#replacee=(value) ⇒ Object

A sub property of object. The object that is being replaced.



42
43
44
# File 'lib/schema_org/mixins/replace_action.rb', line 42

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

#replacerObject

A sub property of object. The object that replaces.



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

def replacer
  read_property(:replacer)
end

#replacer=(value) ⇒ Object

A sub property of object. The object that replaces.



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

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