module Castle

main sdk module

Constants

Command
VERSION

Public Class Methods

api_secret=(api_secret) click to toggle source
# File lib/castle.rb, line 107
def api_secret=(api_secret)
  config.api_secret = api_secret
end
config() click to toggle source
# File lib/castle.rb, line 103
def config
  SingletonConfiguration.instance
end
configure(config_hash = nil) { |config| ... } click to toggle source
# File lib/castle.rb, line 97
def configure(config_hash = nil)
  (config_hash || {}).each { |config_name, config_value| config.send(:"#{config_name}=", config_value) }

  yield(config) if block_given?
end