Class: Brevo::Extras::Base
- Inherits:
-
Object
- Object
- Brevo::Extras::Base
- Defined in:
- lib/brevo/extras/base.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(params) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(params) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/brevo/extras/base.rb', line 12 def initialize(params) @params = params end |
Class Method Details
.call(params) ⇒ Object
7 8 9 |
# File 'lib/brevo/extras/base.rb', line 7 def call(params) new(params).call end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/brevo/extras/base.rb', line 16 def call raise NotImplementedError, "Subclasses must implement #call" end |