Class: Quickeebooks::Online::Service::CompanyMetaData

Inherits:
ServiceBase
  • Object
show all
Defined in:
lib/quickeebooks/online/service/company_meta_data.rb

Overview

Constant Summary

Constants inherited from ServiceBase

ServiceBase::QB_BASE_URI, ServiceBase::XML_NS

Instance Attribute Summary

Attributes inherited from ServiceBase

#base_uri, #oauth, #realm_id

Instance Method Summary collapse

Methods inherited from ServiceBase

#access_token=, #base_url=, #initialize, #login_name, #url_for_base, #url_for_resource

Methods included from Logging

#log

Constructor Details

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

Instance Method Details

#loadObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/quickeebooks/online/service/company_meta_data.rb', line 11

def load
  url = url_for_resource(Quickeebooks::Online::Model::CompanyMetaData.resource_for_singular)
  response = do_http_get(url)
  if response && response.code.to_i == 200
    Quickeebooks::Online::Model::CompanyMetaData.from_xml(response.body)
  else
    nil
  end

end