module Digistore24

The main module for all Digistore24 related models and methods.

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source

Returns the gem wide configuration.

@return [RecursiveOpenStruct]

# File lib/digistore24.rb, line 16
def configuration
  @configuration ||= RecursiveOpenStruct.new
end
configure() { |configuration| ... } click to toggle source

Configure the gem wide configuration object. There are currently no regulations on what to store inside this object

  • any key is allowed.

@example:

Digistore24.configure do |config|
  config.passphrase = 'xxxxx'
end
# File lib/digistore24.rb, line 28
def configure
  yield(configuration)
end