Module: Arrest

Defined in:
lib/arrest/source.rb,
lib/arrest/handler.rb,
lib/arrest/version.rb,
lib/arrest/exceptions.rb,
lib/arrest/mem_source.rb,
lib/arrest/rest_child.rb,
lib/arrest/class_utils.rb,
lib/arrest/http_source.rb,
lib/arrest/string_utils.rb,
lib/arrest/helper/filter.rb,
lib/arrest/helper/logger.rb,
lib/arrest/root_resource.rb,
lib/arrest/nested_resource.rb,
lib/arrest/single_resource.rb,
lib/arrest/abstract_resource.rb,
lib/arrest/attributes/attribute.rb,
lib/arrest/attributes/converter.rb,
lib/arrest/attributes/belongs_to.rb,
lib/arrest/helper/child_collection.rb,
lib/arrest/attributes/has_attributes.rb,
lib/arrest/helper/ordered_collection.rb,
lib/arrest/helper/has_many_collection.rb,
lib/arrest/attributes/nested_attribute.rb,
lib/arrest/attributes/has_many_attribute.rb,
lib/arrest/attributes/belongs_to_attribute.rb,
lib/arrest/attributes/polymorphic_attribute.rb,
lib/arrest/attributes/has_many_sub_resource_attribute.rb

Defined Under Namespace

Modules: BelongsTo, Errors, Handlers, HasAttributes Classes: AbstractResource, ArrayConv, Attribute, BelongsToAttribute, BooleanConv, CallLog, ChildCollection, ClassUtils, Converter, Edge, Filter, HasManyAttribute, HasManyCollection, HasManySubResourceAttribute, HttpSource, IdentConv, IntegerConv, MemSource, NestedAttribute, NestedCollection, NestedResource, Null, OrderedCollection, PolymorphicAttribute, Ref, RequestContext, RequestLog, ResourceProxy, ResponseLog, RestChild, RootResource, ScopedRoot, SingleResource, Source, StringConv, StringUtils, TimeConv

Constant Summary collapse

VERSION =
"0.0.40"
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/source.rb', line 3

def self.debug s
  if Arrest::Source.debug
    puts s
  end
end

.loggerObject



7
8
9
# File 'lib/arrest/helper/logger.rb', line 7

def self.logger
  @@logger
end

Instance Method Details

#add_converter(key, converter) ⇒ Object



30
31
32
# File 'lib/arrest/attributes/converter.rb', line 30

def add_converter key, converter
  CONVERTER[key] = converter
end