Sha256: bb0297282b40aea6a8022154577667c3b42a03e2a824cc61f1a6f42cd99bc38e
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require 'voicepartner/version' require 'voicepartner/configurator' require 'voicepartner/client' module Voicepartner class << self def configure raise 'You need to provide a block to configure' unless block_given? configurator = Configurator.new yield configurator self.configuration = configurator.config self.client = Client.new(self.configuration) end attr_accessor :configuration attr_accessor :client def send_vocal_message(to:, message_text:) if client.nil? raise 'Initialization Error: ' \ 'You must call Voicepartner.configure before calling send_vocal_message' end client.send_vocal_message(to: to, message_text: message_text) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voicepartner-0.1.0 | lib/voicepartner.rb |