Class: Asdawqw::AsdawqwClient

Inherits:
Object
  • Object
show all
Defined in:
lib/asdawqw/asdawqw_client.rb

Overview

asdawqw client class.

Instance Method Summary collapse

Constructor Details

#initialize(x_api_key: nil, jwt: nil) ⇒ AsdawqwClient

Initializer with authentication and configuration parameters.



112
113
114
115
116
117
# File 'lib/asdawqw/asdawqw_client.rb', line 112

def initialize(x_api_key: nil, jwt: nil)
  Configuration.x_api_key = x_api_key if
    x_api_key
  Configuration.jwt = jwt if
    jwt
end

Instance Method Details

#asynchronous_push_messagesAsynchronousPushMessagesController

Singleton access to asynchronous_push_messages controller.

Returns:



101
102
103
# File 'lib/asdawqw/asdawqw_client.rb', line 101

def asynchronous_push_messages
  AsynchronousPushMessagesController.instance
end

#authorizationAuthorizationController

Singleton access to authorization controller.

Returns:



11
12
13
# File 'lib/asdawqw/asdawqw_client.rb', line 11

def authorization
  AuthorizationController.instance
end

#configConfiguration

Returns the configuration class for easy access.

Returns:

  • (Configuration)

    Returns the actual configuration class.



107
108
109
# File 'lib/asdawqw/asdawqw_client.rb', line 107

def config
  Configuration
end

#fee_and_taxFeeAndTaxController

Singleton access to fee_and_tax controller.

Returns:



47
48
49
# File 'lib/asdawqw/asdawqw_client.rb', line 47

def fee_and_tax
  FeeAndTaxController.instance
end

#fee_and_tax_mandatory_at_the_property_levelFeeAndTaxMandatoryAtThePropertyLevelController

Singleton access to fee_and_tax_mandatory_at_the_property_level controller.

Returns:



53
54
55
# File 'lib/asdawqw/asdawqw_client.rb', line 53

def fee_and_tax_mandatory_at_the_property_level
  FeeAndTaxMandatoryAtThePropertyLevelController.instance
end

#imagesImagesController

Singleton access to images controller.

Returns:



29
30
31
# File 'lib/asdawqw/asdawqw_client.rb', line 29

def images
  ImagesController.instance
end

#los_pricingLOSPricingController

Singleton access to los_pricing controller.

Returns:



41
42
43
# File 'lib/asdawqw/asdawqw_client.rb', line 41

def los_pricing
  LOSPricingController.instance
end

#messagingMessagingController

Singleton access to messaging controller.

Returns:



77
78
79
# File 'lib/asdawqw/asdawqw_client.rb', line 77

def messaging
  MessagingController.instance
end

#productProductController

Singleton access to product controller.

Returns:



23
24
25
# File 'lib/asdawqw/asdawqw_client.rb', line 23

def product
  ProductController.instance
end

#property_managersPropertyManagersController

Singleton access to property_managers controller.

Returns:



17
18
19
# File 'lib/asdawqw/asdawqw_client.rb', line 17

def property_managers
  PropertyManagersController.instance
end

#push_notificationPushNotificationController

Singleton access to push_notification controller.

Returns:



89
90
91
# File 'lib/asdawqw/asdawqw_client.rb', line 89

def push_notification
  PushNotificationController.instance
end

#rates_and_availabilityRatesAndAvailabilityController

Singleton access to rates_and_availability controller.

Returns:



35
36
37
# File 'lib/asdawqw/asdawqw_client.rb', line 35

def rates_and_availability
  RatesAndAvailabilityController.instance
end

#request_to_bookRequestToBookController

Singleton access to request_to_book controller.

Returns:



83
84
85
# File 'lib/asdawqw/asdawqw_client.rb', line 83

def request_to_book
  RequestToBookController.instance
end

#reservation_notificationsReservationNotificationsController

Singleton access to reservation_notifications controller.

Returns:



95
96
97
# File 'lib/asdawqw/asdawqw_client.rb', line 95

def reservation_notifications
  ReservationNotificationsController.instance
end

#testing_of_message_api_callsTestingOfMessageAPICallsController

Singleton access to testing_of_message_api_calls controller.

Returns:



71
72
73
# File 'lib/asdawqw/asdawqw_client.rb', line 71

def testing_of_message_api_calls
  TestingOfMessageAPICallsController.instance
end

#validationValidationController

Singleton access to validation controller.

Returns:



65
66
67
# File 'lib/asdawqw/asdawqw_client.rb', line 65

def validation
  ValidationController.instance
end

#yieldsYieldsController

Singleton access to yields controller.

Returns:



59
60
61
# File 'lib/asdawqw/asdawqw_client.rb', line 59

def yields
  YieldsController.instance
end