Class: Grape::Sideload::PresentMany

Inherits:
Object
  • Object
show all
Defined in:
lib/grape/sideload/present_many.rb

Class Method Summary collapse

Instance Method Summary collapse

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_presentersObject



14
15
16
# File 'lib/grape/sideload/present_many.rb', line 14

def merge_presenters
  merged_payload
end