Class: CloudWaba::Client
- Inherits:
-
Object
- Object
- CloudWaba::Client
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/cloud_waba/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(app_id: nil, app_secret: nil, phone_number_id: nil, business_account_id: nil, access_token: nil, api_version: nil) ⇒ Client
constructor
A new instance of Client.
- #messages ⇒ Object
- #templates ⇒ Object
Constructor Details
#initialize(app_id: nil, app_secret: nil, phone_number_id: nil, business_account_id: nil, access_token: nil, api_version: nil) ⇒ Client
Returns a new instance of Client.
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/cloud_waba/client.rb', line 70 def initialize( app_id: nil, app_secret: nil, phone_number_id: nil, business_account_id: nil, access_token: nil, api_version: nil ) @config = ::CloudWaba::Utils.import_config( app_id: app_id, app_secret: app_secret, phone_number_id: phone_number_id, business_account_id: business_account_id, access_token: access_token, api_version: api_version ) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
58 59 60 |
# File 'lib/cloud_waba/client.rb', line 58 def config @config end |