Sha256: 90aa231f1f6660977c79e0fa66727665bf5d1772564c3daf1c1cf1302b264123

Contents?: true

Size: 456 Bytes

Versions: 7

Compression:

Stored size: 456 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
bobot-4.1.0 lib/bobot/configuration.rb
bobot-4.0.0 lib/bobot/configuration.rb
bobot-3.7.9 lib/bobot/configuration.rb
bobot-3.7.8 lib/bobot/configuration.rb
bobot-3.7.6 lib/bobot/configuration.rb
bobot-3.7.3 lib/bobot/configuration.rb
bobot-3.7.2 lib/bobot/configuration.rb