Class: Einvoice::Provider
- Inherits:
-
Object
- Object
- Einvoice::Provider
- Includes:
- Connection
- Defined in:
- lib/einvoice/provider.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#provider ⇒ Object
Returns the value of attribute provider.
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.
6 7 8 9 10 11 |
# File 'lib/einvoice/provider.rb', line 6 def initialize(={}) = Einvoice..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Attribute Details
#provider ⇒ Object
Returns the value of attribute provider.
4 5 6 |
# File 'lib/einvoice/provider.rb', line 4 def provider @provider end |
Instance Method Details
#config ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/einvoice/provider.rb', line 13 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |