Class: OpenActive::Models::Schema::Permit

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/permit.rb

Direct Known Subclasses

GovernmentPermit

Instance Attribute Summary collapse

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#issued_byOpenActive::Models::Schema::Organization



27
28
29
# File 'lib/openactive/models/schema/permit.rb', line 27

def issued_by
  @issued_by
end

#issued_throughOpenActive::Models::Schema::Service



22
23
24
# File 'lib/openactive/models/schema/permit.rb', line 22

def issued_through
  @issued_through
end

#permit_audienceOpenActive::Models::Schema::Audience



17
18
19
# File 'lib/openactive/models/schema/permit.rb', line 17

def permit_audience
  @permit_audience
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/permit.rb', line 7

def type
  "schema:Permit"
end

#valid_forActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


45
46
47
# File 'lib/openactive/models/schema/permit.rb', line 45

def valid_for
  @valid_for
end

#valid_fromDateTime, ...

Returns:

  • (DateTime, Date, nil)


32
33
34
# File 'lib/openactive/models/schema/permit.rb', line 32

def valid_from
  @valid_from
end

#valid_inOpenActive::Models::Schema::AdministrativeArea



12
13
14
# File 'lib/openactive/models/schema/permit.rb', line 12

def valid_in
  @valid_in
end

#valid_untilDate?

Returns:

  • (Date, nil)


39
40
41
# File 'lib/openactive/models/schema/permit.rb', line 39

def valid_until
  @valid_until
end