Sha256: c092b8e0fe9d0bf4c9fe88bf874b847cda495220dd25b2fc7a5cb18e25bda486
Contents?: true
Size: 692 Bytes
Versions: 6
Compression:
Stored size: 692 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(WhatsappSdk::Api::Client) } def client WhatsappSdk::Api::Client.new(access_token) end end end
Version data entries
6 entries across 6 versions & 1 rubygems