module Stripe2QB::OptionsReading
Public Instance Methods
get_required_from_options(key, options)
click to toggle source
# File lib/stripe2qb/options_reading.rb, line 8 def get_required_from_options(key, options) options[key] or raise ConfigurationError.new("missing #{key}") end
set_attribute_from_options(key, options)
click to toggle source
# File lib/stripe2qb/options_reading.rb, line 3 def set_attribute_from_options(key, options) value = get_required_from_options(key, options) instance_variable_set("@#{key}", value) end