Class: Killbill::Cybersource::CyberSourceOnDemand::CyberSourceOnDemandTransactionReport
- Inherits:
-
Object
- Object
- Killbill::Cybersource::CyberSourceOnDemand::CyberSourceOnDemandTransactionReport
- Defined in:
- lib/cybersource/cyber_source_on_demand.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(xml_report, logger) ⇒ CyberSourceOnDemandTransactionReport
constructor
A new instance of CyberSourceOnDemandTransactionReport.
- #request_id ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(xml_report, logger) ⇒ CyberSourceOnDemandTransactionReport
Returns a new instance of CyberSourceOnDemandTransactionReport.
83 84 85 86 87 |
# File 'lib/cybersource/cyber_source_on_demand.rb', line 83 def initialize(xml_report, logger) @logger = logger @hash_report = parse_xml(xml_report) parse end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
81 82 83 |
# File 'lib/cybersource/cyber_source_on_demand.rb', line 81 def response @response end |
Instance Method Details
#empty? ⇒ Boolean
93 94 95 |
# File 'lib/cybersource/cyber_source_on_demand.rb', line 93 def empty? @response.params['merchantReferenceCode'].nil? end |
#request_id ⇒ Object
97 98 99 |
# File 'lib/cybersource/cyber_source_on_demand.rb', line 97 def request_id @response.params['requestID'] end |
#success? ⇒ Boolean
89 90 91 |
# File 'lib/cybersource/cyber_source_on_demand.rb', line 89 def success? @response.success? end |