Module: Toy

Extended by:
Toy
Included in:
Toy
Defined in:
lib/toy.rb,
lib/toy/list.rb,
lib/toy/dirty.rb,
lib/toy/lists.rb,
lib/toy/store.rb,
lib/toy/object.rb,
lib/toy/caching.rb,
lib/toy/inspect.rb,
lib/toy/version.rb,
lib/toy/equality.rb,
lib/toy/identity.rb,
lib/toy/querying.rb,
lib/toy/attribute.rb,
lib/toy/callbacks.rb,
lib/toy/cloneable.rb,
lib/toy/reference.rb,
lib/toy/attributes.rb,
lib/toy/exceptions.rb,
lib/toy/references.rb,
lib/toy/reloadable.rb,
lib/toy/timestamps.rb,
lib/toy/types/json.rb,
lib/toy/dirty_store.rb,
lib/toy/inheritance.rb,
lib/toy/persistence.rb,
lib/toy/validations.rb,
lib/toy/identity_map.rb,
lib/toy/proxies/list.rb,
lib/toy/proxies/proxy.rb,
lib/toy/serialization.rb,
lib/toy/extensions/set.rb,
lib/toy/extensions/date.rb,
lib/toy/extensions/hash.rb,
lib/toy/extensions/time.rb,
lib/toy/extensions/uuid.rb,
lib/toy/extensions/array.rb,
lib/toy/extensions/float.rb,
lib/toy/extensions/object.rb,
lib/toy/extensions/string.rb,
lib/toy/extensions/symbol.rb,
lib/toy/extensions/boolean.rb,
lib/toy/extensions/integer.rb,
lib/toy/instrumenters/noop.rb,
lib/toy/extensions/nil_class.rb,
lib/toy/instrumenters/memory.rb,
lib/toy/middleware/identity_map.rb,
lib/toy/mass_assignment_security.rb,
lib/toy/association_serialization.rb,
lib/toy/identity/uuid_key_factory.rb,
lib/toy/instrumentation/subscriber.rb,
lib/toy/identity/abstract_key_factory.rb,
lib/toy/instrumentation/log_subscriber.rb,
lib/toy/identity/native_uuid_key_factory.rb,
lib/toy/instrumentation/statsd_subscriber.rb,
lib/toy/instrumentation/metriks_subscriber.rb

Defined Under Namespace

Modules: AssociationSerialization, Attributes, Caching, Callbacks, Cloneable, Dirty, DirtyStore, Equality, Extensions, Identity, IdentityMap, Inheritance, Inspect, Instrumentation, Instrumenters, Lists, MassAssignmentSecurity, Middleware, Object, Persistence, Proxies, Querying, References, Reloadable, Serialization, Store, Timestamps, Types, Validations Classes: Attribute, AttributeNotDefined, Error, InvalidKey, InvalidKeyFactory, List, NotFound, RecordInvalid, Reference

Constant Summary collapse

VERSION =
"0.13.2"

Instance Method Summary collapse

Instance Method Details

#instrumenterObject



30
31
32
# File 'lib/toy.rb', line 30

def instrumenter
  @instrumenter || Toy::Instrumenters::Noop
end

#instrumenter=(instrumenter) ⇒ Object



34
35
36
# File 'lib/toy.rb', line 34

def instrumenter=(instrumenter)
  @instrumenter = instrumenter
end

#key_factoryObject



26
27
28
# File 'lib/toy.rb', line 26

def key_factory
  @key_factory ||= Toy::Identity::UUIDKeyFactory.new
end

#key_factory=(key_factory) ⇒ Object



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

def key_factory=(key_factory)
  @key_factory = key_factory
end