Sha256: dd8fc71e06aab2dca8ff640e00d35d44e85149acbe85fec8b979c65273380ff0

Contents?: true

Size: 468 Bytes

Versions: 11

Compression:

Stored size: 468 Bytes

Contents

module Bobot
  class Configuration
    attr_accessor :app_id, :app_secret, :verify_token, :skip_code, :domains, :async, :commander_queue_name, :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

11 entries across 11 versions & 1 rubygems

Version Path
bobot-5.0.4 lib/bobot/configuration.rb
bobot-5.0.3 lib/bobot/configuration.rb
bobot-5.0.2 lib/bobot/configuration.rb
bobot-5.0.1 lib/bobot/configuration.rb
bobot-5.0.0 lib/bobot/configuration.rb
bobot-4.5.0 lib/bobot/configuration.rb
bobot-4.4.1 lib/bobot/configuration.rb
bobot-4.4.0 lib/bobot/configuration.rb
bobot-4.3.1 lib/bobot/configuration.rb
bobot-4.3.0 lib/bobot/configuration.rb
bobot-4.2.0 lib/bobot/configuration.rb