Class: Fulfil::InteractiveReport
- Inherits:
-
Object
- Object
- Fulfil::InteractiveReport
- Defined in:
- lib/fulfil/interactive_report.rb
Instance Method Summary collapse
- #execute(**params) ⇒ Object
-
#initialize(client:, report:) ⇒ InteractiveReport
constructor
A new instance of InteractiveReport.
Constructor Details
#initialize(client:, report:) ⇒ InteractiveReport
Returns a new instance of InteractiveReport.
5 6 7 8 |
# File 'lib/fulfil/interactive_report.rb', line 5 def initialize(client:, report:) @client = client @report = report end |
Instance Method Details
#execute(**params) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fulfil/interactive_report.rb', line 10 def execute(**params) body = {} params.each do |key, value| body[key] = if value.is_a?(Date) serialize_date(value) else value end end @client.interactive_report( endpoint: report_url, body: [body] ) end |