Sha256: 466a876ddbc3d807b92bad50c8809650c12e19479640ea3fb7efac756cd82bd8

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

require 'ostruct'

module Rmega
  def self.default_options
    {
      upload_timeout:       120,
      api_request_timeout:  20,
      api_url:              'https://eu.api.mega.co.nz/cs'
    }
  end

  def self.options
    @options ||= OpenStruct.new(default_options)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rmega-0.1.5 lib/rmega/options.rb
rmega-0.1.4 lib/rmega/options.rb
rmega-0.1.3 lib/rmega/options.rb
rmega-0.1.2 lib/rmega/options.rb
rmega-0.1.1 lib/rmega/options.rb