Module: Smooth
- Defined in:
- lib/smooth.rb,
lib/smooth/model.rb,
lib/smooth/version.rb,
lib/smooth/endpoint.rb,
lib/smooth/resource.rb,
lib/smooth/meta_data.rb,
lib/smooth/queryable.rb,
lib/smooth/collection.rb,
lib/smooth/presentable.rb,
lib/smooth/backends/base.rb,
lib/smooth/backends/file.rb,
lib/smooth/backends/redis.rb,
lib/smooth/collection/query.rb,
lib/smooth/presentable/chain.rb,
lib/smooth/queryable/settings.rb,
lib/smooth/meta_data/inspector.rb,
lib/smooth/queryable/converter.rb,
lib/smooth/adapters/rails_cache.rb,
lib/smooth/adapters/redis_cache.rb,
lib/smooth/backends/rest_client.rb,
lib/smooth/collection/cacheable.rb,
lib/smooth/meta_data/application.rb,
lib/smooth/backends/active_record.rb,
lib/smooth/presentable/controller.rb,
lib/smooth/backends/redis_namespace.rb,
lib/smooth/presentable/api_endpoint.rb
Defined Under Namespace
Modules: Adapters, Backends, MetaData, Presentable, Queryable, Resource
Classes: Collection, DefaultPresenter, Endpoint, Model
Constant Summary
collapse
- Version =
'0.0.5'
Class Method Summary
collapse
Class Method Details
.data_directory ⇒ Object
26
27
28
|
# File 'lib/smooth.rb', line 26
def self.data_directory
@@data_directory || File.join(ENV['HOME'],'.smooth',environment)
end
|
.environment ⇒ Object
22
23
24
|
# File 'lib/smooth.rb', line 22
def self.environment
ENV['RAILS_ENV'] || ENV['SMOOTH_ENV'] || "development"
end
|
.namespace ⇒ Object
12
13
14
|
# File 'lib/smooth.rb', line 12
def self.namespace
@@namespace || "smooth"
end
|
.project ⇒ Object
16
17
18
19
20
|
# File 'lib/smooth.rb', line 16
def self.project
if defined?(::Rails)
Rails.application.class.to_s
end
end
|