lib/buttercms-ruby.rb in buttercms-ruby-1.7 vs lib/buttercms-ruby.rb in buttercms-ruby-1.8

- old
+ new

@@ -28,10 +28,11 @@ class << self attr_accessor :api_token attr_accessor :write_api_token attr_accessor :test_mode attr_accessor :read_timeout + attr_accessor :open_timeout attr_reader :data_store attr_writer :logger end def self.logger @@ -170,10 +171,10 @@ private def self.http_options { - open_timeout: 2.0, + open_timeout: open_timeout || 2.0, read_timeout: read_timeout || 5.0, ssl_timeout: 2.0, use_ssl: @api_url.scheme == "https", } end