class OFX::HTTP
Attributes
body[R]
uri[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/ofx/http.rb, line 6 def initialize(options = {}) @uri = options[:uri] || ENV['OFX_URI'] end
Public Instance Methods
headers()
click to toggle source
# File lib/ofx/http.rb, line 14 def headers { 'Content-Type' => 'application/x-ofx', 'Accept'=> '*/*, application/x-ofx' } end
raw_headers()
click to toggle source
# File lib/ofx/http.rb, line 21 def raw_headers headers.inject('') do |result, (key, value)| result.dup << "#{key}: #{value}\n" end.strip end