Module: EasySerializer

Defined in:
lib/easy_serializer.rb,
lib/easy_serializer/base.rb,
lib/easy_serializer/field.rb,
lib/easy_serializer/cacher.rb,
lib/easy_serializer/helpers.rb,
lib/easy_serializer/version.rb,
lib/easy_serializer/attribute.rb,
lib/easy_serializer/collection.rb,
lib/easy_serializer/root_cacher.rb,
lib/easy_serializer/cache_output.rb,
lib/easy_serializer/cacher/method.rb,
lib/easy_serializer/cacher/template.rb,
lib/easy_serializer/cacher/collection.rb,
lib/easy_serializer/cacher/serializer.rb,
lib/easy_serializer/attribute_serializer.rb

Defined Under Namespace

Modules: Helpers Classes: Attribute, AttributeSerializer, Base, CacheOutput, Cacher, Collection, Field, RootCacher

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.cacheObject



21
22
23
24
# File 'lib/easy_serializer.rb', line 21

def self.cache
  return @cache if defined?(@cache)
  false
end

.cache=(val) ⇒ Object



17
18
19
# File 'lib/easy_serializer.rb', line 17

def self.cache=(val)
  @cache = val
end

.perform_cachingObject



12
13
14
15
# File 'lib/easy_serializer.rb', line 12

def self.perform_caching
  return @perform_caching if defined?(@perform_caching)
  false
end

.perform_caching=(val) ⇒ Object



8
9
10
# File 'lib/easy_serializer.rb', line 8

def self.perform_caching=(val)
  @perform_caching = val
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



4
5
6
# File 'lib/easy_serializer.rb', line 4

def self.setup
  yield self
end