Sha256: 0c84fd271d00f7df26c0358a57a2c2fdca191088975de36af832c792b5f28e22

Contents?: true

Size: 582 Bytes

Versions: 10

Compression:

Stored size: 582 Bytes

Contents

module Bobot
  class Configuration
    attr_accessor :app_id, :app_secret, :verify_token, :skip_code, :domains, :async, :commander_queue_name, :url_for_chat_extension, :size_for_chat_extension, :share_button_for_chat_extension, :in_test_for_chat_extension, :pages

    def domains=(rhs)
      if rhs.nil?
        @domains = nil
      elsif rhs.respond_to?(:to_str)
        @domains = rhs.split(",").map(&:strip)
      elsif rhs.is_a?(Array)
        @domains = rhs
      else
        raise Bobot::FieldFormat.new("domains should be a string or an array")
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bobot-4.15.0 lib/bobot/configuration.rb
bobot-4.14.0 lib/bobot/configuration.rb
bobot-4.13.1 lib/bobot/configuration.rb
bobot-4.13.0 lib/bobot/configuration.rb
bobot-4.11.0 lib/bobot/configuration.rb
bobot-4.10.0 lib/bobot/configuration.rb
bobot-4.9.0 lib/bobot/configuration.rb
bobot-4.8.0 lib/bobot/configuration.rb
bobot-4.7.0 lib/bobot/configuration.rb
bobot-4.6.0 lib/bobot/configuration.rb