Sha256: 7ee11097df1a9556c5c98372e877dc99705d952575aa7f9c8afde9c0894fc017

Contents?: true

Size: 463 Bytes

Versions: 10

Compression:

Stored size: 463 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::InvalidParameter.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-3.6.3 lib/bobot/configuration.rb
bobot-3.6.0 lib/bobot/configuration.rb
bobot-3.5.2 lib/bobot/configuration.rb
bobot-3.5.1 lib/bobot/configuration.rb
bobot-3.5.0 lib/bobot/configuration.rb
bobot-3.0.7 lib/bobot/configuration.rb
bobot-3.0.6 lib/bobot/configuration.rb
bobot-3.0.5 lib/bobot/configuration.rb
bobot-3.0.3 lib/bobot/configuration.rb
bobot-3.0.2 lib/bobot/configuration.rb