Module: SchemaOrg::Mixins::PostalCodeRangeSpecification
- Includes:
- StructuredValue
- Included in:
- PostalCodeRangeSpecification
- Defined in:
- lib/schema_org/mixins/postal_code_range_specification.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#postal_code_begin ⇒ Object
First postal code in a range (included).
-
#postal_code_begin=(value) ⇒ Object
First postal code in a range (included).
-
#postal_code_end ⇒ Object
Last postal code in the range (included).
-
#postal_code_end=(value) ⇒ Object
Last postal code in the range (included).
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 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/schema_org/mixins/postal_code_range_specification.rb', line 11 def self.schema_property_definitions { postal_code_begin: { schema_name: "postalCodeBegin", schema_url: "https://schema.org/postalCodeBegin", comment_lines: ["First postal code in a range (included)."].freeze, ranges: ["Text"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze, postal_code_end: { schema_name: "postalCodeEnd", schema_url: "https://schema.org/postalCodeEnd", comment_lines: ["Last postal code in the range (included). Needs to be after [[postalCodeBegin]]."].freeze, ranges: ["Text"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze }.freeze end |
Instance Method Details
#postal_code_begin ⇒ Object
First postal code in a range (included).
37 38 39 |
# File 'lib/schema_org/mixins/postal_code_range_specification.rb', line 37 def postal_code_begin read_property(:postal_code_begin) end |
#postal_code_begin=(value) ⇒ Object
First postal code in a range (included).
42 43 44 |
# File 'lib/schema_org/mixins/postal_code_range_specification.rb', line 42 def postal_code_begin=(value) write_property(:postal_code_begin, value) end |
#postal_code_end ⇒ Object
Last postal code in the range (included). Needs to be after [[postalCodeBegin]].
47 48 49 |
# File 'lib/schema_org/mixins/postal_code_range_specification.rb', line 47 def postal_code_end read_property(:postal_code_end) end |
#postal_code_end=(value) ⇒ Object
Last postal code in the range (included). Needs to be after [[postalCodeBegin]].
52 53 54 |
# File 'lib/schema_org/mixins/postal_code_range_specification.rb', line 52 def postal_code_end=(value) write_property(:postal_code_end, value) end |