Class: Einvoice::Provider
- Inherits:
-
Object
- Object
- Einvoice::Provider
- Includes:
- Connection
- Defined in:
- lib/einvoice/provider.rb
Direct Known Subclasses
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ Provider
constructor
A new instance of Provider.
Constructor Details
#initialize(options = {}) ⇒ Provider
Returns a new instance of Provider.
5 6 7 8 9 10 |
# File 'lib/einvoice/provider.rb', line 5 def initialize(={}) = Einvoice..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/einvoice/provider.rb', line 12 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |