Class: OpenActive::Models::Slot

Inherits:
Event show all
Defined in:
lib/openactive/models/slot.rb

Overview

This type is derived from [Event](schema.org/Event), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Instance Attribute Summary collapse

Attributes inherited from Event

#attendee_count, #availability, #distance, #estimated_duration, #facility_setting, #formatted_description, #is_virtually_coached, #is_wheelchair_accessible, #offer_validity_period, #registration_count, #video

Attributes inherited from OpenActive::Models::Schema::Event

#about, #actor, #aggregate_rating, #attendee, #attendees, #audience, #composer, #director, #door_time, #funder, #in_language, #performer, #performers, #previous_start_date, #recorded_in, #review, #sponsor, #sub_events, #translator, #typical_age_range, #work_featured, #work_performed

Attributes inherited from OpenActive::Models::Schema::Thing

#additional_type, #alternate_name, #disambiguating_description, #main_entity_of_page, #same_as, #subject_of

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

#accessibility_informationString

Returns:

  • (String)


31
32
33
# File 'lib/openactive/models/slot.rb', line 31

def accessibility_information
  @accessibility_information
end

#accessibility_supportArray<OpenActive::Models::Concept>

Returns:



36
37
38
# File 'lib/openactive/models/slot.rb', line 36

def accessibility_support
  @accessibility_support
end

#activityArray<OpenActive::Models::Concept>

Returns:



41
42
43
# File 'lib/openactive/models/slot.rb', line 41

def activity
  @activity
end

#age_rangeOpenActive::Models::QuantitativeValue



46
47
48
# File 'lib/openactive/models/slot.rb', line 46

def age_range
  @age_range
end

#attendee_instructionsString

Returns:

  • (String)


51
52
53
# File 'lib/openactive/models/slot.rb', line 51

def attendee_instructions
  @attendee_instructions
end

#categoryArray<String>, Array<OpenActive::Models::Concept>

Returns:



56
57
58
# File 'lib/openactive/models/slot.rb', line 56

def category
  @category
end

#contributorArray<OpenActive::Models::Person>

Returns:



62
63
64
# File 'lib/openactive/models/slot.rb', line 62

def contributor
  @contributor
end

#descriptionString

Returns:

  • (String)


26
27
28
# File 'lib/openactive/models/slot.rb', line 26

def description
  @description
end

#durationActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


67
68
69
# File 'lib/openactive/models/slot.rb', line 67

def duration
  @duration
end

#end_dateDate, ...

Returns:

  • (Date, DateTime, nil)


192
193
194
# File 'lib/openactive/models/slot.rb', line 192

def end_date
  @end_date
end

#event_scheduleArray<OpenActive::Models::Schedule>

Returns:



73
74
75
# File 'lib/openactive/models/slot.rb', line 73

def event_schedule
  @event_schedule
end

#event_statusOpenActive::Enums::Schema::EventStatusType?



78
79
80
# File 'lib/openactive/models/slot.rb', line 78

def event_status
  @event_status
end

#facility_useURI, ...



84
85
86
# File 'lib/openactive/models/slot.rb', line 84

def facility_use
  @facility_use
end

#gender_restrictionOpenActive::Enums::GenderRestrictionType?



91
92
93
# File 'lib/openactive/models/slot.rb', line 91

def gender_restriction
  @gender_restriction
end

#identifierint, ...



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

def identifier
  @identifier
end

#imageArray<OpenActive::Models::ImageObject>



97
98
99
# File 'lib/openactive/models/slot.rb', line 97

def image
  @image
end

#is_accessible_for_freeBoolean?

Returns:

  • (Boolean, nil)


102
103
104
# File 'lib/openactive/models/slot.rb', line 102

def is_accessible_for_free
  @is_accessible_for_free
end

#is_coachedBoolean?

Returns:

  • (Boolean, nil)


108
109
110
# File 'lib/openactive/models/slot.rb', line 108

def is_coached
  @is_coached
end

#leaderArray<OpenActive::Models::Person>

Returns:



114
115
116
# File 'lib/openactive/models/slot.rb', line 114

def leader
  @leader
end

#levelArray<String>, Array<OpenActive::Models::Concept>

Returns:



119
120
121
# File 'lib/openactive/models/slot.rb', line 119

def level
  @level
end

#locationOpenActive::Models::Place



125
126
127
# File 'lib/openactive/models/slot.rb', line 125

def location
  @location
end

#maximum_attendee_capacityint?

Returns:

  • (int, nil)


130
131
132
# File 'lib/openactive/models/slot.rb', line 130

def maximum_attendee_capacity
  @maximum_attendee_capacity
end

#maximum_usesint?

Returns:

  • (int, nil)


136
137
138
# File 'lib/openactive/models/slot.rb', line 136

def maximum_uses
  @maximum_uses
end

#meeting_pointString

Returns:

  • (String)


142
143
144
# File 'lib/openactive/models/slot.rb', line 142

def meeting_point
  @meeting_point
end

#nameString

Returns:

  • (String)


21
22
23
# File 'lib/openactive/models/slot.rb', line 21

def name
  @name
end

#offersArray<OpenActive::Models::Offer>

Returns:



147
148
149
# File 'lib/openactive/models/slot.rb', line 147

def offers
  @offers
end

#organizerOpenActive::Models::Person, OpenActive::Models::Organization



152
153
154
# File 'lib/openactive/models/slot.rb', line 152

def organizer
  @organizer
end

#potential_actionArray<OpenActive::Models::Action>

Returns:



158
159
160
# File 'lib/openactive/models/slot.rb', line 158

def potential_action
  @potential_action
end

#programmeOpenActive::Models::Brand



163
164
165
# File 'lib/openactive/models/slot.rb', line 163

def programme
  @programme
end

#remaining_attendee_capacityint?

Returns:

  • (int, nil)


168
169
170
# File 'lib/openactive/models/slot.rb', line 168

def remaining_attendee_capacity
  @remaining_attendee_capacity
end

#remaining_usesint?

Returns:

  • (int, nil)


174
175
176
# File 'lib/openactive/models/slot.rb', line 174

def remaining_uses
  @remaining_uses
end

#scheduling_noteString

Returns:

  • (String)


180
181
182
# File 'lib/openactive/models/slot.rb', line 180

def scheduling_note
  @scheduling_note
end

#sports_activity_locationArray<OpenActive::Models::SportsActivityLocation>



214
215
216
# File 'lib/openactive/models/slot.rb', line 214

def sports_activity_location
  @sports_activity_location
end

#start_dateDate, ...

Returns:

  • (Date, DateTime, nil)


185
186
187
# File 'lib/openactive/models/slot.rb', line 185

def start_date
  @start_date
end

#sub_eventArray<OpenActive::Models::Event>

Returns:



199
200
201
# File 'lib/openactive/models/slot.rb', line 199

def sub_event
  @sub_event
end

#super_eventOpenActive::Models::Event



204
205
206
# File 'lib/openactive/models/slot.rb', line 204

def super_event
  @super_event
end

#typeString

Returns:

  • (String)


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

def type
  "Slot"
end

#urlURI

Returns:

  • (URI)


209
210
211
# File 'lib/openactive/models/slot.rb', line 209

def url
  @url
end