module EmaySoap::Configurable
Attributes
cdkey[RW]
key[RW]
password[RW]
prefix[RW]
Public Class Methods
default_options()
click to toggle source
# File lib/emay_soap/configurable.rb, line 6 def default_options { prefix: ENV['EMAY_PREFIX'], cdkey: ENV['EMAY_CDKEY'], key: ENV['EMAY_KEY'], # session key, max length is 15 password: ENV['EMAY_PASSWORD'] } end
setup_keys()
click to toggle source
# File lib/emay_soap/configurable.rb, line 15 def setup_keys @setup_keys ||= [:prefix, :cdkey, :key, :password] end
Public Instance Methods
options()
click to toggle source
# File lib/emay_soap/configurable.rb, line 20 def options ary = EmaySoap::Configurable.setup_keys.map do |key| [key, send(key)] end Hash[ary] end
setup() { |self| ... }
click to toggle source
# File lib/emay_soap/configurable.rb, line 27 def setup yield self end