Class: Gonebusy::GonebusyClient
- Inherits:
-
Object
- Object
- Gonebusy::GonebusyClient
- Defined in:
- lib/gonebusy/gonebusy_client.rb
Instance Method Summary collapse
-
#bookings ⇒ BookingsController
Singleton access to bookings controller.
-
#categories ⇒ CategoriesController
Singleton access to categories controller.
-
#initialize(authorization: 'Token <your API key>') ⇒ GonebusyClient
constructor
Initializer with authentication and configuration parameters.
-
#pricing_models ⇒ PricingModelsController
Singleton access to pricing_models controller.
-
#resources ⇒ ResourcesController
Singleton access to resources controller.
-
#schedules ⇒ SchedulesController
Singleton access to schedules controller.
-
#search ⇒ SearchController
Singleton access to search controller.
-
#services ⇒ ServicesController
Singleton access to services controller.
-
#users ⇒ UsersController
Singleton access to users controller.
Constructor Details
#initialize(authorization: 'Token <your API key>') ⇒ GonebusyClient
Initializer with authentication and configuration parameters
54 55 56 |
# File 'lib/gonebusy/gonebusy_client.rb', line 54 def initialize(authorization: 'Token <your API key>') Configuration. = if end |
Instance Method Details
#bookings ⇒ BookingsController
Singleton access to bookings controller
7 8 9 |
# File 'lib/gonebusy/gonebusy_client.rb', line 7 def bookings BookingsController.instance end |
#categories ⇒ CategoriesController
Singleton access to categories controller
13 14 15 |
# File 'lib/gonebusy/gonebusy_client.rb', line 13 def categories CategoriesController.instance end |
#pricing_models ⇒ PricingModelsController
Singleton access to pricing_models controller
19 20 21 |
# File 'lib/gonebusy/gonebusy_client.rb', line 19 def pricing_models PricingModelsController.instance end |
#resources ⇒ ResourcesController
Singleton access to resources controller
25 26 27 |
# File 'lib/gonebusy/gonebusy_client.rb', line 25 def resources ResourcesController.instance end |
#schedules ⇒ SchedulesController
Singleton access to schedules controller
31 32 33 |
# File 'lib/gonebusy/gonebusy_client.rb', line 31 def schedules SchedulesController.instance end |
#search ⇒ SearchController
Singleton access to search controller
37 38 39 |
# File 'lib/gonebusy/gonebusy_client.rb', line 37 def search SearchController.instance end |
#services ⇒ ServicesController
Singleton access to services controller
43 44 45 |
# File 'lib/gonebusy/gonebusy_client.rb', line 43 def services ServicesController.instance end |
#users ⇒ UsersController
Singleton access to users controller
49 50 51 |
# File 'lib/gonebusy/gonebusy_client.rb', line 49 def users UsersController.instance end |