Module: SchemaOrg::Mixins::WarrantyPromise

Includes:
StructuredValue
Included in:
WarrantyPromise
Defined in:
lib/schema_org/mixins/warranty_promise.rb

Class Method Summary collapse

Instance Method Summary collapse

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/warranty_promise.rb', line 11

def self.schema_property_definitions
  {
    duration_of_warranty: {
      schema_name: "durationOfWarranty",
      schema_url: "https://schema.org/durationOfWarranty",
      comment_lines: ["The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days."].freeze,
      ranges: ["QuantitativeValue"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    warranty_scope: {
      schema_name: "warrantyScope",
      schema_url: "https://schema.org/warrantyScope",
      comment_lines: ["The scope of the warranty promise."].freeze,
      ranges: ["WarrantyScope"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze
  }.freeze
end

Instance Method Details

#duration_of_warrantyObject

The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days.



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

def duration_of_warranty
  read_property(:duration_of_warranty)
end

#duration_of_warranty=(value) ⇒ Object

The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days.



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

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

#warranty_scopeObject

The scope of the warranty promise.



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

def warranty_scope
  read_property(:warranty_scope)
end

#warranty_scope=(value) ⇒ Object

The scope of the warranty promise.



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

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