Module: Stripe2QB::OptionsReading
- Included in:
- Configuration, QuickbooksApi, QuickbooksApi::AccessToken, StripeApi
- Defined in:
- lib/stripe2qb/options_reading.rb
Instance Method Summary collapse
- #get_required_from_options(key, options) ⇒ Object
- #set_attribute_from_options(key, options) ⇒ Object
Instance Method Details
#get_required_from_options(key, options) ⇒ Object
8 9 10 |
# File 'lib/stripe2qb/options_reading.rb', line 8 def (key, ) [key] or raise ConfigurationError.new("missing #{key}") end |
#set_attribute_from_options(key, options) ⇒ Object
3 4 5 6 |
# File 'lib/stripe2qb/options_reading.rb', line 3 def (key, ) value = (key, ) instance_variable_set("@#{key}", value) end |