Sha256: c46346fbca915e2b0e11778c40205b91a27da25b48476fee4bf69f5b85891150
Contents?: true
Size: 735 Bytes
Versions: 8
Compression:
Stored size: 735 Bytes
Contents
module Rmega def self.default_options { thread_pool_size: 4, max_retries: 10, retry_interval: 3, http_open_timeout: 180, http_read_timeout: 180, # http_proxy_address: '127.0.0.1', # http_proxy_port: 8080, show_progress: false, file_integrity_check: true, api_url: 'https://eu.api.mega.co.nz/cs' } end def self.options @options ||= OpenStruct.new(default_options) end module Options def self.included(base) base.__send__(:extend, ClassMethods) end def options Rmega.options end module ClassMethods def options Rmega.options end end end end
Version data entries
8 entries across 8 versions & 1 rubygems