Class: Quickeebooks::Windows::Service::SyncActivity

Inherits:
ServiceBase
  • Object
show all
Defined in:
lib/quickeebooks/windows/service/sync_activity.rb

Constant Summary

Constants inherited from ServiceBase

Quickeebooks::Windows::Service::ServiceBase::XML_NS

Instance Attribute Summary

Attributes inherited from ServiceBase

#base_uri, #last_response_body, #last_response_xml, #oauth, #realm_id

Instance Method Summary collapse

Methods inherited from ServiceBase

#access_token=, #enforce_filter_order, #initialize, #url_for_base, #url_for_resource

Methods included from Logging

#log

Constructor Details

This class inherits a constructor from Quickeebooks::Windows::Service::ServiceBase

Instance Method Details

#retrieve(parameters = {}) ⇒ Object

Fetch SyncActivity objects Arguments: parameters: Hash of attributes accepted to select SyncActivityResponse objects



12
13
14
15
16
17
# File 'lib/quickeebooks/windows/service/sync_activity.rb', line 12

def retrieve(parameters={})
  model = Quickeebooks::Windows::Model::SyncActivityResponse

  response = do_http_post(url_for_resource(model::REST_RESOURCE), xml_body(parameters), {}, {'Content-Type' => 'text/xml'})
  parse_collection(response, model)
end