Class: CreditDevice::Report
- Inherits:
-
Object
- Object
- CreditDevice::Report
- Defined in:
- lib/credit_device/report.rb
Instance Attribute Summary collapse
-
#inquiry_id ⇒ Object
readonly
Returns the value of attribute inquiry_id.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, **_parameter) ⇒ Report
constructor
A new instance of Report.
- #report_by_inquiry_id ⇒ Object
- #request_report ⇒ Object
Constructor Details
#initialize(path, **_parameter) ⇒ Report
Returns a new instance of Report.
7 8 9 10 |
# File 'lib/credit_device/report.rb', line 7 def initialize(path, **_parameter) @path = path @inquiry_id = _parameter[:inquiry_id] end |
Instance Attribute Details
#inquiry_id ⇒ Object (readonly)
Returns the value of attribute inquiry_id.
5 6 7 |
# File 'lib/credit_device/report.rb', line 5 def inquiry_id @inquiry_id end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/credit_device/report.rb', line 5 def path @path end |
Instance Method Details
#report_by_inquiry_id ⇒ Object
17 18 19 |
# File 'lib/credit_device/report.rb', line 17 def report_by_inquiry_id "inquiries/#{@inquiry_id}/report" end |
#request_report ⇒ Object
12 13 14 15 |
# File 'lib/credit_device/report.rb', line 12 def request_report @path = report_by_inquiry_id if @inquiry_id CreditDevice::Client.new(:get, @path).request end |