Module: Digistore24
- Defined in:
- lib/digistore24.rb,
lib/digistore24/version.rb,
lib/digistore24/notification.rb
Overview
The main module for all Digistore24 related models and methods.
Defined Under Namespace
Classes: Notification, NotificationError
Constant Summary collapse
- VERSION =
'0.1.1'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ RecursiveOpenStruct
Returns the gem wide configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Configure the gem wide configuration object.
Class Attribute Details
.configuration ⇒ RecursiveOpenStruct
Returns the gem wide configuration.
16 17 18 |
# File 'lib/digistore24.rb', line 16 def configuration @configuration ||= RecursiveOpenStruct.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
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
28 29 30 |
# File 'lib/digistore24.rb', line 28 def configure yield(configuration) end |