Class: Wallaby::ActiveRecord::ModelServiceProvider::Querier::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/adapters/wallaby/active_record/model_service_provider/querier/wrapper.rb

Overview

Wrapper for the Transformer result. It’s only used by Wallaby::ActiveRecord::ModelServiceProvider::Querier to tell it apart with non-Transformer result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list = []) ⇒ Wrapper

Returns a new instance of Wrapper.

Parameters:

  • list (Array) (defaults to: [])


19
20
21
# File 'lib/adapters/wallaby/active_record/model_service_provider/querier/wrapper.rb', line 19

def initialize(list = [])
  @list = list
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



11
12
13
# File 'lib/adapters/wallaby/active_record/model_service_provider/querier/wrapper.rb', line 11

def list
  @list
end