Class: Supreme::Transaction

Inherits:
Response show all
Defined in:
lib/supreme/response.rb

Overview

Response to a fetch request

Instance Attribute Summary

Attributes inherited from Response

#body

Instance Method Summary collapse

Methods inherited from Response

#error?, for, #initialize

Constructor Details

This class inherits a constructor from Supreme::Response

Instance Method Details

#amountObject



48
49
50
# File 'lib/supreme/response.rb', line 48

def amount
  text('//amount')
end

#transaction_idObject



44
45
46
# File 'lib/supreme/response.rb', line 44

def transaction_id
  text('//transaction_id')
end

#urlObject



52
53
54
55
# File 'lib/supreme/response.rb', line 52

def url
  # For some reason REXML doesn't process the character entities in the XML
  text('//URL').gsub('&', '&')
end