Skip to content

Commit

Permalink
Update data models (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
openactive-bot authored Feb 14, 2023
1 parent ab46ef7 commit 805be9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions lib/openactive/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,14 @@ def type
"string",
]

# @return [Date,DateTime,nil]
# @return [DateTime,nil]
define_property :start_date, as: "startDate", types: [
"Date",
"DateTime",
"null",
]

# @return [Date,DateTime,nil]
# @return [DateTime,nil]
define_property :end_date, as: "endDate", types: [
"Date",
"DateTime",
"null",
]
Expand Down
6 changes: 2 additions & 4 deletions lib/openactive/models/event_series.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ def type
"EventSeries"
end

# @return [Date,DateTime,nil]
# @return [DateTime,nil]
define_property :start_date, as: "startDate", types: [
"Date",
"DateTime",
"null",
]

# @return [Date,DateTime,nil]
# @return [DateTime,nil]
define_property :end_date, as: "endDate", types: [
"Date",
"DateTime",
"null",
]
Expand Down
6 changes: 2 additions & 4 deletions lib/openactive/models/on_demand_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,14 @@ def type
"string",
]

# @return [Date,DateTime,nil]
# @return [DateTime,nil]
define_property :start_date, as: "startDate", types: [
"Date",
"DateTime",
"null",
]

# @return [Date,DateTime,nil]
# @return [DateTime,nil]
define_property :end_date, as: "endDate", types: [
"Date",
"DateTime",
"null",
]
Expand Down

0 comments on commit 805be9a

Please sign in to comment.