Class: MessageMediaLookups::MessageMediaLookupsClient
- Inherits:
-
Object
- Object
- MessageMediaLookups::MessageMediaLookupsClient
- Defined in:
- lib/message_media_lookups/message_media_lookups_client.rb
Overview
message_media_lookups client class.
Instance Method Summary collapse
-
#config ⇒ Configuration
Returns the configuration class for easy access.
-
#initialize(auth_user_name: nil, auth_password: nil, use_hmac: false) ⇒ MessageMediaLookupsClient
constructor
Initializer with authentication and configuration parameters.
-
#lookups ⇒ LookupsController
Singleton access to lookups controller.
Constructor Details
#initialize(auth_user_name: nil, auth_password: nil, use_hmac: false) ⇒ MessageMediaLookupsClient
Initializer with authentication and configuration parameters.
18 19 20 21 22 23 24 25 26 |
# File 'lib/message_media_lookups/message_media_lookups_client.rb', line 18 def initialize(auth_user_name: nil, auth_password: nil, use_hmac: false) if (use_hmac == false) Configuration.basic_auth_user_name = auth_user_name Configuration.basic_auth_password = auth_password else Configuration.hmac_auth_user_name = auth_user_name Configuration.hmac_auth_password = auth_password end end |
Instance Method Details
#config ⇒ Configuration
Returns the configuration class for easy access.
13 14 15 |
# File 'lib/message_media_lookups/message_media_lookups_client.rb', line 13 def config Configuration end |
#lookups ⇒ LookupsController
Singleton access to lookups controller.
7 8 9 |
# File 'lib/message_media_lookups/message_media_lookups_client.rb', line 7 def lookups LookupsController.instance end |