Class: Grape::Sideload::PresentMany
- Inherits:
-
Object
- Object
- Grape::Sideload::PresentMany
- Defined in:
- lib/grape/sideload/present_many.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input, block) ⇒ PresentMany
constructor
A new instance of PresentMany.
- #merge_presenters ⇒ Object
Constructor Details
#initialize(input, block) ⇒ PresentMany
Returns a new instance of PresentMany.
5 6 7 8 |
# File 'lib/grape/sideload/present_many.rb', line 5 def initialize(input, block) @input = input @block = block end |
Class Method Details
.call(*input, block) ⇒ Object
10 11 12 |
# File 'lib/grape/sideload/present_many.rb', line 10 def self.call(*input, block) new(input, block).merge_presenters end |
Instance Method Details
#merge_presenters ⇒ Object
14 15 16 |
# File 'lib/grape/sideload/present_many.rb', line 14 def merge_presenters merged_payload end |