Class: Gonebusy::GonebusyClient

Inherits:
Object
  • Object
show all
Defined in:
lib/gonebusy/gonebusy_client.rb

Instance Method Summary collapse

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.authorization = authorization if authorization
end

Instance Method Details

#bookingsBookingsController

Singleton access to bookings controller

Returns:



7
8
9
# File 'lib/gonebusy/gonebusy_client.rb', line 7

def bookings
  BookingsController.instance
end

#categoriesCategoriesController

Singleton access to categories controller

Returns:



13
14
15
# File 'lib/gonebusy/gonebusy_client.rb', line 13

def categories
  CategoriesController.instance
end

#pricing_modelsPricingModelsController

Singleton access to pricing_models controller

Returns:



19
20
21
# File 'lib/gonebusy/gonebusy_client.rb', line 19

def pricing_models
  PricingModelsController.instance
end

#resourcesResourcesController

Singleton access to resources controller

Returns:



25
26
27
# File 'lib/gonebusy/gonebusy_client.rb', line 25

def resources
  ResourcesController.instance
end

#schedulesSchedulesController

Singleton access to schedules controller

Returns:



31
32
33
# File 'lib/gonebusy/gonebusy_client.rb', line 31

def schedules
  SchedulesController.instance
end

#searchSearchController

Singleton access to search controller

Returns:



37
38
39
# File 'lib/gonebusy/gonebusy_client.rb', line 37

def search
  SearchController.instance
end

#servicesServicesController

Singleton access to services controller

Returns:



43
44
45
# File 'lib/gonebusy/gonebusy_client.rb', line 43

def services
  ServicesController.instance
end

#usersUsersController

Singleton access to users controller

Returns:



49
50
51
# File 'lib/gonebusy/gonebusy_client.rb', line 49

def users
  UsersController.instance
end