Module: RubyOmx::Memos

Defined in:
lib/ruby_omx/memos.rb

Instance Method Summary collapse

Instance Method Details

#build_memo_submission_request(attrs = {}) ⇒ Object



4
5
6
# File 'lib/ruby_omx/memos.rb', line 4

def build_memo_submission_request(attrs={})
  MemoSubmissionRequest.new(attrs.merge({:udi_auth_token=>@udi_auth_token, :http_biz_id=>@http_biz_id}))
end

#send_memo_submission_request(attrs = {}) ⇒ Object Also known as: send_memo



8
9
10
11
12
13
# File 'lib/ruby_omx/memos.rb', line 8

def send_memo_submission_request(attrs={})
  request = build_memo_submission_request(attrs)
    response = post(request.to_xml.to_s)
    return response if request.raw_xml==true || request.raw_xml==1
    MemoSubmissionResponse.format(response)		  
end