Class: Crefo::Service::Report
- Inherits:
-
Crefo::Service
- Object
- Crefo::Service
- Crefo::Service::Report
- Defined in:
- lib/crefo/service/report.rb,
lib/crefo/service/report/request.rb,
lib/crefo/service/report/response.rb
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Crefo::Service
Instance Method Summary collapse
-
#initialize(options) ⇒ Report
constructor
A new instance of Report.
Methods inherited from Crefo::Service
Constructor Details
#initialize(options) ⇒ Report
Returns a new instance of Report.
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/crefo/service/report.rb', line 4 def initialize() raise 'identificationnumber is missing' unless [:identificationnumber] raise 'legitimateinterest is missing' unless [:legitimateinterest] raise 'producttype is missing' unless [:producttype] || [:productid] [:reportlanguage] ||= Crefo.config.communicationlanguage [:producttype] ||= "PRTY-#{.delete(:productid)}" super() end |