title: Method calling helper method response
body: <p>I have a method in my helper that returns rows of results. I want to pass this to a method in my model which is called by another method. </p>
  
  <p>Helper Method:</p>
  
  <pre><code>def transactions(account_id, start, finish)
    response = get_call('/Accounts/Statements/' + account_id.to_s + '/' + start + '/' + finish)
    response = JSON.parse(response.body)
    @transactions = response.map {|txn| Transaction.new(txn)}
  
    return @transactions
  end
  </code></pre>
  
  <p>Model Method I wish to call helper method into:</p>
  
  <pre><code>def transaction
    ??
  end
  </code></pre>
  
  <p>Model Method which requires the transaction method:</p>
  
  <pre><code>def to_pdf
    title = @account.name
    subtitle = "Account Statement: #{@month_name} #{@year}"
    StatementPDF.new(title, subtitle, @transactions).render
  end
  </code></pre>
  
  <p>In the initialise section of this method i have added:</p>
  
  <pre><code>@transactions = {} 
  </code></pre>
  
  <p>The Prawn PDF is now being generated but without the rows of results. Let me know if any other information is required.</p>