Class: Socketlab::MessageProcessed

Inherits:
SocketlabRequest show all
Defined in:
lib/socketlab/message_processed.rb

Instance Attribute Summary

Attributes inherited from SocketlabRequest

#api_password, #api_response, #api_server, #api_user, #api_version, #count, #error, #items, #query_params, #timestamp, #total_count, #total_pages

Instance Method Summary collapse

Methods inherited from SocketlabRequest

#initialize, #set_query_params_type, #set_request_options, #socketlab_request, #success?

Constructor Details

This class inherits a constructor from Socketlab::SocketlabRequest

Instance Method Details

#api_request(query = {:type=>"JSON"}) ⇒ Object

JSON, JSONP, XML or CSV date_format yyyy-mm-dd hh:mm:ss If the time is omitted it will default to 00:00:00. query= timeZone offset, mailingId=>“”,:messageId=>“”,:index=>“”,:count=>“”:type=>“JSON”



9
10
11
12
13
# File 'lib/socketlab/message_processed.rb', line 9

def api_request(query={:type=>"JSON"})
  @query_params = query
  socketlab_request("messagesProcessed")

end

#set_responseObject

Assuming type is json



16
17
18
# File 'lib/socketlab/message_processed.rb', line 16

def set_response
  super(MessageProcessedItem)
end