Class: OpenActive::Models::Schedule

Inherits:
JsonLdModel show all
Defined in:
lib/openactive/models/schedule.rb

Overview

This type is derived from [Schedule](pending.schema.org/Schedule), 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.

Direct Known Subclasses

PartialSchedule

Instance Attribute Summary collapse

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

#by_dayArray<String>, ...

Returns:



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

def by_day
  @by_day
end

#by_monthArray<int>?

Returns:

  • (Array<int>, nil)


19
20
21
# File 'lib/openactive/models/schedule.rb', line 19

def by_month
  @by_month
end

#by_month_dayArray<int>?

Returns:

  • (Array<int>, nil)


25
26
27
# File 'lib/openactive/models/schedule.rb', line 25

def by_month_day
  @by_month_day
end

#durationActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


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

def duration
  @duration
end

#end_dateDate?

Returns:

  • (Date, nil)


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

def end_date
  @end_date
end

#end_timeTime?

Returns:

  • (Time, nil)


37
38
39
# File 'lib/openactive/models/schedule.rb', line 37

def end_time
  @end_time
end

#except_dateArray<DateTime>, ...

Returns:

  • (Array<DateTime>, Array<Date>, nil)


43
44
45
# File 'lib/openactive/models/schedule.rb', line 43

def except_date
  @except_date
end

#id_templateURI

Returns:

  • (URI)


50
51
52
# File 'lib/openactive/models/schedule.rb', line 50

def id_template
  @id_template
end

#repeat_countint?

Returns:

  • (int, nil)


55
56
57
# File 'lib/openactive/models/schedule.rb', line 55

def repeat_count
  @repeat_count
end

#repeat_frequencyActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


61
62
63
# File 'lib/openactive/models/schedule.rb', line 61

def repeat_frequency
  @repeat_frequency
end

#scheduled_event_typeString

Returns:

  • (String)


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

def scheduled_event_type
  @scheduled_event_type
end

#start_dateDate?

Returns:

  • (Date, nil)


72
73
74
# File 'lib/openactive/models/schedule.rb', line 72

def start_date
  @start_date
end

#start_timeTime?

Returns:

  • (Time, nil)


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

def start_time
  @start_time
end

#time_zoneString

Returns:

  • (String)


95
96
97
# File 'lib/openactive/models/schedule.rb', line 95

def time_zone
  @time_zone
end

#typeString

Returns:

  • (String)


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

def type
  "Schedule"
end

#url_templateURI

Returns:

  • (URI)


90
91
92
# File 'lib/openactive/models/schedule.rb', line 90

def url_template
  @url_template
end