Module: Arrest
- Defined in:
- lib/arrest/handler.rb,
lib/arrest/version.rb,
lib/arrest/exceptions.rb,
lib/arrest/helper/filter.rb,
lib/arrest/helper/logger.rb,
lib/arrest/root_resource.rb,
lib/arrest/helper/has_many.rb,
lib/arrest/helper/has_view.rb,
lib/arrest/nested_resource.rb,
lib/arrest/single_resource.rb,
lib/arrest/transport/source.rb,
lib/arrest/abstract_resource.rb,
lib/arrest/utils/class_utils.rb,
lib/arrest/utils/string_utils.rb,
lib/arrest/attributes/attribute.rb,
lib/arrest/attributes/converter.rb,
lib/arrest/default_class_loader.rb,
lib/arrest/transport/mem_source.rb,
lib/arrest/attributes/belongs_to.rb,
lib/arrest/helper/ids_collection.rb,
lib/arrest/transport/http_source.rb,
lib/arrest/transport/scoped_root.rb,
lib/arrest/transport/resource_proxy.rb,
lib/arrest/attributes/has_attributes.rb,
lib/arrest/helper/ordered_collection.rb,
lib/arrest/transport/request_context.rb,
lib/arrest/helper/has_many_collection.rb,
lib/arrest/attributes/nested_attribute.rb,
lib/arrest/attributes/nested_collection.rb,
lib/arrest/attributes/belongs_to_attribute.rb,
lib/arrest/attributes/polymorphic_attribute.rb
Defined Under Namespace
Modules: BelongsTo, Dirty, Errors, Handlers, HasAttributes, HasMany, HasView
Classes: AbstractResource, ArrayConv, Attribute, BelongsToAttribute, BooleanConv, CallLog, ClassUtils, Converter, DefaultClassLoader, DummyCache, Edge, Filter, FloatConv, HasManyCollection, HttpSource, IdentConv, IdentityCache, IdsCollection, IntegerConv, MemSource, NestedAttribute, NestedCollection, NestedResource, Null, OrderedCollection, PolymorphicAttribute, Ref, RequestContext, RequestLog, ResourceProxy, ResponseLog, RootResource, ScopedRoot, SingleResource, Source, StringConv, StringUtils, TimeConv
Constant Summary
collapse
- VERSION =
"0.0.91"
- CONVERTER =
{}
- @@logger =
Logger.new('log/arrest.log')
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.debug(s) ⇒ Object
3
4
5
6
7
|
# File 'lib/arrest/transport/source.rb', line 3
def self.debug s
if Arrest::Source.debug
puts s
end
end
|
.logger ⇒ Object
7
8
9
|
# File 'lib/arrest/helper/logger.rb', line 7
def self.logger
@@logger
end
|
Instance Method Details
#add_converter(key, converter) ⇒ Object
9
10
11
|
# File 'lib/arrest/attributes/converter.rb', line 9
def add_converter key, converter
CONVERTER[key] = converter
end
|