Class: Quickeebooks::Online::Service::CompanyMetaData
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- Quickeebooks::Online::Service::CompanyMetaData
- Defined in:
- lib/quickeebooks/online/service/company_meta_data.rb
Overview
read only, corresponds to the realm_id see ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0400_QuickBooks_Online/CompanyMetaData
Constant Summary
Constants inherited from ServiceBase
ServiceBase::QB_BASE_URI, ServiceBase::XML_NS
Instance Attribute Summary
Attributes inherited from ServiceBase
Instance Method Summary collapse
Methods inherited from ServiceBase
#access_token=, #base_url=, #initialize, #login_name, #url_for_base, #url_for_resource
Constructor Details
This class inherits a constructor from Quickeebooks::Online::Service::ServiceBase
Instance Method Details
#load ⇒ Object
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 |