lib/rooftop.rb in rooftop-0.0.5 vs lib/rooftop.rb in rooftop-0.0.6
- old
+ new
@@ -23,11 +23,11 @@
end
end
class Configuration
- attr_accessor :api_token, :url, :site_name, :perform_caching, :cache_store, :cache_logger, :ssl_options, :proxy
+ attr_accessor :api_token, :url, :site_name, :perform_caching, :cache_store, :cache_logger, :ssl_options, :proxy, :post_type_mapping
attr_reader :connection,
:connection_path,
:api_path, #actually writeable with custom setter
:extra_headers, #actually writeable with custom setter
:advanced_options, #actually writeable with custom setter
@@ -42,9 +42,10 @@
@perform_caching = false
@cache_store = ActiveSupport::Cache.lookup_store(:memory_store)
@cache_logger = nil
@ssl_options = {}
@proxy = nil
+ @post_type_mapping = {}
end
def api_path=(path)
@api_path = path || @api_path
end