Module: SchemaOrg::Mixins::Seat

Includes:
Intangible
Included in:
Seat
Defined in:
lib/schema_org/mixins/seat.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/schema_org/mixins/seat.rb', line 11

def self.schema_property_definitions
  {
    seat_number: {
      schema_name: "seatNumber",
      schema_url: "https://schema.org/seatNumber",
      comment_lines: ["The location of the reserved seat (e.g., 27)."].freeze,
      ranges: ["Text"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    seat_row: {
      schema_name: "seatRow",
      schema_url: "https://schema.org/seatRow",
      comment_lines: ["The row location of the reserved seat (e.g., B)."].freeze,
      ranges: ["Text"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    seat_section: {
      schema_name: "seatSection",
      schema_url: "https://schema.org/seatSection",
      comment_lines: ["The section location of the reserved seat (e.g. Orchestra)."].freeze,
      ranges: ["Text"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    seating_type: {
      schema_name: "seatingType",
      schema_url: "https://schema.org/seatingType",
      comment_lines: ["The type/class of the seat."].freeze,
      ranges: ["QualitativeValue", "Text"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze
  }.freeze
end

Instance Method Details

#seat_numberObject

The location of the reserved seat (e.g., 27).



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

def seat_number
  read_property(:seat_number)
end

#seat_number=(value) ⇒ Object

The location of the reserved seat (e.g., 27).



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

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

#seat_rowObject

The row location of the reserved seat (e.g., B).



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

def seat_row
  read_property(:seat_row)
end

#seat_row=(value) ⇒ Object

The row location of the reserved seat (e.g., B).



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

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

#seat_sectionObject

The section location of the reserved seat (e.g. Orchestra).



77
78
79
# File 'lib/schema_org/mixins/seat.rb', line 77

def seat_section
  read_property(:seat_section)
end

#seat_section=(value) ⇒ Object

The section location of the reserved seat (e.g. Orchestra).



82
83
84
# File 'lib/schema_org/mixins/seat.rb', line 82

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

#seating_typeObject

The type/class of the seat.



87
88
89
# File 'lib/schema_org/mixins/seat.rb', line 87

def seating_type
  read_property(:seating_type)
end

#seating_type=(value) ⇒ Object

The type/class of the seat.



92
93
94
# File 'lib/schema_org/mixins/seat.rb', line 92

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