Sha256: bf3580472d4611e18c8ad01b200c7153aaee7b2e44fa79de33f2f190d016017a

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

require 'ostruct'

module Rmega
  def self.default_options
    {
      show_progress:        true,
      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

1 entries across 1 versions & 1 rubygems

Version Path
rmega-0.1.0 lib/rmega/options.rb