Class: Nuncium::WebServices::DmInfo::GetListOfSentMessages

Inherits:
Request
  • Object
show all
Defined in:
lib/nuncium/web_services/dm_info/get_list_of_sent_messages.rb

Constant Summary collapse

ATTRS =
%i[dmFromTime dmToTime dmSenderOrgUnitNum
dmStatusFilter dmOffset dmLimit].freeze

Instance Method Summary collapse

Methods inherited from Request

#api_url, #xml_url

Methods inherited from Request

#api_url, call, #call, #default_headers, #envelope_namespaces, #full_url, #initialize, #to_xml, #values, #xml_url

Constructor Details

This class inherits a constructor from Nuncium::Request

Instance Method Details

#body(xml) ⇒ Object



10
11
12
13
14
# File 'lib/nuncium/web_services/dm_info/get_list_of_sent_messages.rb', line 10

def body(xml)
  xml[:v20].GetListOfSentMessages do
    values(xml)
  end
end

#call_reponse_wrapper(response) ⇒ Object



20
21
22
# File 'lib/nuncium/web_services/dm_info/get_list_of_sent_messages.rb', line 20

def call_reponse_wrapper(response)
  response_wrapper.new(response)
end

#response_wrapperObject



16
17
18
# File 'lib/nuncium/web_services/dm_info/get_list_of_sent_messages.rb', line 16

def response_wrapper
  ::Nuncium::Responses::Messages::Collection
end