Sha256: 523202b8439b74c7a421f32a4364b6d7115c7c4dd412f41187622cde2cf8919b
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
# typed: strict # frozen_string_literal: true module WhatsappSdk # This module allows client instantiating the client as a singleton like the following example: # WhatsappSdk.configure do |config| # config.access_token = ACCESS_TOKEN # end # # The gem have access to the client through WhatsappSdk.configuration.client class Configuration extend T::Sig sig { returns(String) } attr_accessor :access_token sig { params(access_token: String).void } def initialize(access_token = "") @access_token = access_token end sig { returns(Api::Client) } def client Api::Client.new(access_token) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whatsapp_sdk-0.11.0 | lib/whatsapp_sdk/configuration.rb |
whatsapp_sdk-0.10.0 | lib/whatsapp_sdk/configuration.rb |