class BigMachines::Transaction
Attributes
raw_transaction[R]
Public Class Methods
new(response)
click to toggle source
# File lib/big_machines/transaction.rb, line 5 def initialize(response) @raw_transaction = response # Metadata @transaction = response["transaction"] # Quote @quote_process = @transaction["data_xml"]["quote_process"] # Line Items @line_process = if @quote_process["sub_documents"].is_a?(Hash) @quote_process["sub_documents"]["line_process"] else [] end end
Public Instance Methods
method_missing(method, *args)
click to toggle source
# File lib/big_machines/transaction.rb, line 19 def method_missing(method, *args) @transaction[method.to_s] end
quote()
click to toggle source
# File lib/big_machines/transaction.rb, line 23 def quote @quote_process end
quote_line_items()
click to toggle source
# File lib/big_machines/transaction.rb, line 27 def quote_line_items @line_process end