Module: Xdelivery
- Defined in:
- lib/xdelivery.rb,
lib/xdelivery/client.rb,
lib/xdelivery/version.rb,
lib/xdelivery/api/base.rb,
lib/xdelivery/api/ping.rb,
lib/xdelivery/callback.rb,
lib/xdelivery/api/sales.rb,
lib/xdelivery/api/shops.rb,
lib/xdelivery/api/orders.rb,
lib/xdelivery/exceptions.rb,
lib/xdelivery/api/products.rb,
lib/xdelivery/api/response/base.rb,
lib/xdelivery/api/response/ping.rb,
lib/xdelivery/api/response/shops.rb,
lib/xdelivery/api/response/orders.rb,
lib/xdelivery/api/response/products.rb
Defined Under Namespace
Modules: API, Exceptions
Classes: Callback, Client
Constant Summary
collapse
- VERSION =
"1.0.2"
- @@open_timeout =
5
- @@read_timeout =
5
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
Xdelivery.configure do |config|
config.open_timeout = 5
config.read_timeout = 5
end
45
46
47
|
# File 'lib/xdelivery.rb', line 45
def self.configure
yield(self)
end
|
.open_timeout ⇒ Object
25
26
27
|
# File 'lib/xdelivery.rb', line 25
def self.open_timeout
@@open_timeout
end
|
.open_timeout=(timeout) ⇒ Object
29
30
31
|
# File 'lib/xdelivery.rb', line 29
def self.open_timeout=(timeout)
@@open_timeout = timeout
end
|
.read_timeout ⇒ Object
33
34
35
|
# File 'lib/xdelivery.rb', line 33
def self.read_timeout
@@read_timeout
end
|
.read_timeout=(timeout) ⇒ Object
37
38
39
|
# File 'lib/xdelivery.rb', line 37
def self.read_timeout=(timeout)
@@read_timeout = timeout
end
|
Instance Method Details
#url ⇒ Object
49
50
51
|
# File 'lib/xdelivery.rb', line 49
def url
API::Base::BASE_URL
end
|