Class: MessageMediaLookups::MessageMediaLookupsClient

Inherits:
Object
  • Object
show all
Defined in:
lib/message_media_lookups/message_media_lookups_client.rb

Overview

message_media_lookups client class.

Instance Method Summary collapse

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

#configConfiguration

Returns the configuration class for easy access.

Returns:



13
14
15
# File 'lib/message_media_lookups/message_media_lookups_client.rb', line 13

def config
  Configuration
end

#lookupsLookupsController

Singleton access to lookups controller.

Returns:



7
8
9
# File 'lib/message_media_lookups/message_media_lookups_client.rb', line 7

def lookups
  LookupsController.instance
end