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