Module: Magento
- Defined in:
- lib/magento-rb.rb,
lib/magento/api_error.rb,
lib/magento/soap_api_v2.rb,
lib/magento/xml_api.rb
Defined Under Namespace
Classes: ApiError, SoapApiV2, XmlApi
Class Method Summary
collapse
Class Method Details
.api_endpoint=(value) ⇒ Object
7
8
9
10
11
|
# File 'lib/magento-rb.rb', line 7
def self.api_endpoint=(value)
@@xml_api = nil
@@soap_api = nil
@@api_endpoint = value
end
|
.api_password=(value) ⇒ Object
19
20
21
22
23
|
# File 'lib/magento-rb.rb', line 19
def self.api_password=(value)
@@xml_api = nil
@@soap_api = nil
@@api_password = value
end
|
.api_username=(value) ⇒ Object
13
14
15
16
17
|
# File 'lib/magento-rb.rb', line 13
def self.api_username=(value)
@@xml_api = nil
@@soap_api = nil
@@api_username = value
end
|
.debug=(value) ⇒ Object
25
26
27
28
|
# File 'lib/magento-rb.rb', line 25
def self.debug=(value)
@@xml_api = nil
@@debug = value
end
|
.soap_api ⇒ Object
35
36
37
|
# File 'lib/magento-rb.rb', line 35
def self.soap_api
@@soap_api ||= SoapApiV2.new @@api_endpoint, @@api_username, @@api_password
end
|
.xml_api(debug = nil) ⇒ Object
30
31
32
33
|
# File 'lib/magento-rb.rb', line 30
def self.xml_api(debug = nil)
@@xml_api = nil if debug
@@xml_api ||= XmlApi.new @@api_endpoint, @@api_username, @@api_password, :debug => debug || @@debug || false
end
|