lib/azeroth/decorator.rb in azeroth-0.6.2 vs lib/azeroth/decorator.rb in azeroth-0.6.3
- old
+ new
@@ -38,12 +38,13 @@
# # 'name' => 'John Wick',
# # 'age' => nil,
# # 'pokemon' => 'Arcanine'
# # }
class Decorator
- autoload :HashBuilder, 'azeroth/decorator/hash_builder'
- autoload :Options, 'azeroth/decorator/options'
+ autoload :HashBuilder, 'azeroth/decorator/hash_builder'
+ autoload :KeyValueExtractor, 'azeroth/decorator/key_value_extractor'
+ autoload :Options, 'azeroth/decorator/options'
class << self
# @api private
#
# All attributes exposed
@@ -74,13 +75,14 @@
# @private
#
# Expose attributes on json decorated
#
# @param attribute [Symbol,String] attribute to be exposed
- # @param options [Hash] exposing options
- # @option options as [Symbol,String] custom key
+ # @param options_hash [Hash] exposing options
+ # @option options_hash as [Symbol,String] custom key
# to expose
- # @option options if [Symbol,Proc] method/block to be called
+ # @option options_hash if [Symbol,Proc] method/block
+ # to be called
# checking if an attribute should or should not
# be exposed
#
# @return [Array<Symbol>]
#