Sha256: 74102b450bd45045bec204e4b86f198c7d0cd046ceec4ac03f76219b7d7ff3c0

Contents?: true

Size: 1.45 KB

Versions: 4

Compression:

Stored size: 1.45 KB

Contents

module OpenActive
  module Models
    module Schema
      class Permit < ::OpenActive::Models::Schema::Intangible
        # @!attribute type
        # @return [String]
        def type
          "schema:Permit"
        end

        # @return [OpenActive::Models::Schema::AdministrativeArea]
        define_property :valid_in, as: "validIn", types: [
          "OpenActive::Models::Schema::AdministrativeArea",
        ]

        # @return [OpenActive::Models::Schema::Audience]
        define_property :permit_audience, as: "permitAudience", types: [
          "OpenActive::Models::Schema::Audience",
        ]

        # @return [OpenActive::Models::Schema::Service]
        define_property :issued_through, as: "issuedThrough", types: [
          "OpenActive::Models::Schema::Service",
        ]

        # @return [OpenActive::Models::Schema::Organization]
        define_property :issued_by, as: "issuedBy", types: [
          "OpenActive::Models::Schema::Organization",
        ]

        # @return [DateTime,Date,nil]
        define_property :valid_from, as: "validFrom", types: [
          "DateTime",
          "Date",
          "null",
        ]

        # @return [Date,nil]
        define_property :valid_until, as: "validUntil", types: [
          "Date",
          "null",
        ]

        # @return [ActiveSupport::Duration,nil]
        define_property :valid_for, as: "validFor", types: [
          "DateInterval",
          "null",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/permit.rb
openactive-0.1.1 lib/openactive/models/schema/permit.rb
openactive-0.1.0 lib/openactive/models/schema/permit.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/permit.rb