Sha256: f1d54b8b686e50bdc37a30d5babead31bb93ca924f7eaadbc62adc238f95800f

Contents?: true

Size: 1.86 KB

Versions: 10

Compression:

Stored size: 1.86 KB

Contents

module SolidusSeo
  module Jsonld
    module Builder
      module DataMethods
        private

        # Prop-specific data source interface
        # @type attributes are unnecessary

        def address_prop
          # See https://schema.org/PostalAddress for details and examples
          # {
          #   "streetAddress": "1600 Pennsylvania Avenue",
          #   "addressLocality": "Washington",
          #   "addressRegion": "District of Columbia",
          #   "postalCode": "20500",
          #   "addressCountry": "US"
          # }
        end

        def contact_points_prop
          # See https://schema.org/ContactPoint for details and examples
          # [
          #   {
          #     "telephone": "+11111111111",
          #     "contactType": "customer service",
          #     }
          # ]
        end

        def opening_hours_specification_prop
          # See https://schema.org/OpeningHoursSpecification for details and examples
          # [
            # {
            #   "dayOfWeek": [
            #     "Monday",
            #     "Tuesday",
            #     "Wednesday",
            #     "Thursday",
            #     "Friday"
            #   ],
            #   "opens": "12:00",
            #   "closes": "22:00"
            # },
            # {
            #   "dayOfWeek": "Saturday",
            #   "opens": "12:00",
            #   "closes": "23:59"
            # }
          # ]
        end

        def geo_prop
          # See https://schema.org/GeoCoordinates for details and examples
          # {
          #   "latitude": -37.3,
          #   "longitude": -12.68
          # }
        end

        def same_as_prop
          # See https://schema.org/sameAs for details and examples
          # [
          #   'https://facebook.com/mystore',
          #   'https://twitter.com/mystore',
          # ]
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_seo-1.1.2 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.1.1 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.1.0 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.13 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.12 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.11 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.10 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.8 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.7 lib/solidus_seo/jsonld/builder/data_methods.rb
solidus_seo-1.0.2 lib/solidus_seo/jsonld/builder/data_methods.rb