-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding configurations, availability, sessions, bookings endpoint unde…
…r Scheduler to match with other SDKs architecture
- Loading branch information
Subash Pradhan
committed
Oct 24, 2024
1 parent
6f7e6be
commit 23618ba
Showing
2 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
require_relative './configurations' | ||
require_relative './sessions' | ||
require_relative './bookings' | ||
require_relative './availability' | ||
|
||
module Nylas | ||
class Scheduler | ||
def initialize(api_client) | ||
@api_client = api_client | ||
@configurations = Configurations.new(@api_client) | ||
@bookings = Bookings.new(@api_client) | ||
@sessions = Sessions.new(@api_client) | ||
@availability = Availability.new(@api_client) | ||
end | ||
|
||
# The configuration resources for your Nylas application. | ||
# @return [Nylas::Scheduler::Confiugrations] Scheduler configuration resources | ||
# for your Nylas application. | ||
def configurations | ||
@configurations | ||
end | ||
|
||
# The Session resources for your Nylas application. | ||
# @return [Nylas::Scheduler::Sessions] Scheduler session resources for your Nylas application. | ||
def sessions | ||
@sessions | ||
end | ||
|
||
# The Booking resources for your Nylas application. | ||
# @return [Nylas::Scheduler::Bookings] Scheduler booking resources for your Nylas application. | ||
def bookings | ||
@bookings | ||
end | ||
|
||
# The availability resources for your Nylas application. | ||
# @return [Nylas::Scheduler::Availability] Scheduling availability resources for your Nylas application. | ||
def availability | ||
@availability | ||
end | ||
end | ||
end |